Plugin Directory

Changeset 199029


Ignore:
Timestamp:
01/28/2010 02:50:47 PM (16 years ago)
Author:
geraldyeo
Message:
 
Location:
url-shortener
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • url-shortener/tags/2.0/fts-shortenurl-logic.php

    r198704 r199029  
    3131    case 'pingfm':
    3232        $newshort->apikey = htmlentities($fts_urlfx['apikey_pingfm'], ENT_QUOTES);
     33        $newshort->pingfmapi = 'f51e33510d3cbe2ff1e16a4a4897f099';
    3334        break;
    3435    case 'awesm':
  • url-shortener/tags/2.0/req/class.FTShorten.php

    r198704 r199029  
    1919    class FTShorten extends FTShortenShared {
    2020        public $service, $url, $name, $apikey, $apiprefix, $apiextend; 
     21        public $pingfmapi;
    2122        public function shorturl(){
    2223            $surl = urlencode($this->url);
     
    8990                    $apiurl = 'http://api.ping.fm/v1/url.create';
    9091                    $body = array(
    91                         'api_key' => 'f51e33510d3cbe2ff1e16a4a4897f099',
     92                        'api_key' => $this->pingfmapi,
    9293                        'user_app_key' => $skey,
    93                         'long_url' => $surl
     94                        'long_url' => $nurl
    9495                    );
    9596                    $result = $this->processxml($apiurl, 'POST', $body);
    96                     if ($xml) {
     97                    if ($result) {
    9798                        $xml = new SimpleXMLElement($result);
    9899                        $data = $xml->short_url;               
  • url-shortener/trunk/fts-shortenurl-logic.php

    r198746 r199029  
    3131    case 'pingfm':
    3232        $newshort->apikey = htmlentities($fts_urlfx['apikey_pingfm'], ENT_QUOTES);
     33        $newshort->pingfmapi = 'f51e33510d3cbe2ff1e16a4a4897f099';
    3334        break;
    3435    case 'awesm':
  • url-shortener/trunk/req/class.FTShorten.php

    r198746 r199029  
    1919    class FTShorten extends FTShortenShared {
    2020        public $service, $url, $name, $apikey, $apiprefix, $apiextend; 
     21        public $pingfmapi;
    2122        public function shorturl(){
    2223            $surl = urlencode($this->url);
     
    8990                    $apiurl = 'http://api.ping.fm/v1/url.create';
    9091                    $body = array(
    91                         'api_key' => 'f51e33510d3cbe2ff1e16a4a4897f099',
     92                        'api_key' => $this->pingfmapi,
    9293                        'user_app_key' => $skey,
    93                         'long_url' => $surl
     94                        'long_url' => $nurl
    9495                    );
    9596                    $result = $this->processxml($apiurl, 'POST', $body);
    96                     if ($xml) {
     97                    if ($result) {
    9798                        $xml = new SimpleXMLElement($result);
    9899                        $data = $xml->short_url;               
Note: See TracChangeset for help on using the changeset viewer.