Changeset 199029
- Timestamp:
- 01/28/2010 02:50:47 PM (16 years ago)
- Location:
- url-shortener
- Files:
-
- 4 edited
-
tags/2.0/fts-shortenurl-logic.php (modified) (1 diff)
-
tags/2.0/req/class.FTShorten.php (modified) (2 diffs)
-
trunk/fts-shortenurl-logic.php (modified) (1 diff)
-
trunk/req/class.FTShorten.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
url-shortener/tags/2.0/fts-shortenurl-logic.php
r198704 r199029 31 31 case 'pingfm': 32 32 $newshort->apikey = htmlentities($fts_urlfx['apikey_pingfm'], ENT_QUOTES); 33 $newshort->pingfmapi = 'f51e33510d3cbe2ff1e16a4a4897f099'; 33 34 break; 34 35 case 'awesm': -
url-shortener/tags/2.0/req/class.FTShorten.php
r198704 r199029 19 19 class FTShorten extends FTShortenShared { 20 20 public $service, $url, $name, $apikey, $apiprefix, $apiextend; 21 public $pingfmapi; 21 22 public function shorturl(){ 22 23 $surl = urlencode($this->url); … … 89 90 $apiurl = 'http://api.ping.fm/v1/url.create'; 90 91 $body = array( 91 'api_key' => 'f51e33510d3cbe2ff1e16a4a4897f099',92 'api_key' => $this->pingfmapi, 92 93 'user_app_key' => $skey, 93 'long_url' => $ surl94 'long_url' => $nurl 94 95 ); 95 96 $result = $this->processxml($apiurl, 'POST', $body); 96 if ($ xml) {97 if ($result) { 97 98 $xml = new SimpleXMLElement($result); 98 99 $data = $xml->short_url; -
url-shortener/trunk/fts-shortenurl-logic.php
r198746 r199029 31 31 case 'pingfm': 32 32 $newshort->apikey = htmlentities($fts_urlfx['apikey_pingfm'], ENT_QUOTES); 33 $newshort->pingfmapi = 'f51e33510d3cbe2ff1e16a4a4897f099'; 33 34 break; 34 35 case 'awesm': -
url-shortener/trunk/req/class.FTShorten.php
r198746 r199029 19 19 class FTShorten extends FTShortenShared { 20 20 public $service, $url, $name, $apikey, $apiprefix, $apiextend; 21 public $pingfmapi; 21 22 public function shorturl(){ 22 23 $surl = urlencode($this->url); … … 89 90 $apiurl = 'http://api.ping.fm/v1/url.create'; 90 91 $body = array( 91 'api_key' => 'f51e33510d3cbe2ff1e16a4a4897f099',92 'api_key' => $this->pingfmapi, 92 93 'user_app_key' => $skey, 93 'long_url' => $ surl94 'long_url' => $nurl 94 95 ); 95 96 $result = $this->processxml($apiurl, 'POST', $body); 96 if ($ xml) {97 if ($result) { 97 98 $xml = new SimpleXMLElement($result); 98 99 $data = $xml->short_url;
Note: See TracChangeset
for help on using the changeset viewer.