1app.factory('sendLinkService',['$http', '$q' ,function($http, $q) { 2 var sendLink = {}; 3 4 sendLink.state = ''; 5 sendLink.tinyurl = ''; 6 sendLink.mobile = ''; 7 sendLink.getTinyURL = getTinyURL; 8 sendLink.sendSMS = sendSMS; 9 return sendLink; 10 11 function getTinyURL() { 12 return $http.get('http://tinyurl.com/api-create.php?url='.$url).then(handleTinyURLSuccess, handleError('Error getting tiny url')); 13 } 14 15 function sendSMS() { 16 var txtmsg = "Thank you for showing interest in downloading the Black & White Cabs App. Download the App from https://www.blackandwhitecabs.com.au/scripts/download.php"; 17 var def = $q.defer(); 18 var endpoint = ""; 19 var config = { 20 dataType: 'JSON' 21 }; 22 23 $http.get(endpoint,config) 24 .then(function(res) { 25 res = jQuery.parseXML(res.data); 26 var response = jQuery(res).find("string").text(); 27 def.resolve(response); 28 }, 29 function(err) { 30 def.reject(err); 31 }); 32 return def.promise; 33 } 34}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.