public function __construct($pshid, $jbd, $expiry = 3600)
 {
     parent::__construct(JOBAMATIC_API_ENDPOINT, $expiry);
     $this->pshid = trim($pshid);
     $this->jbd = trim($jbd);
     $this->checkErrors = true;
 }
 function __construct()
 {
     if (!self::$username || !self::$apiKey) {
         user_error('Bitly username and api key not supplied.', E_USER_WARNING);
     }
     parent::__construct(self::$address);
 }
 public function __construct($sub = false, $header = null, $expiry = -1)
 {
     parent::__construct('https://api.instagram.com/', $expiry);
     $this->clientID = Config::inst()->get('Instagram', 'clientID');
     $this->clientSecret = Config::inst()->get('Instagram', 'clientSecret');
     $this->config = SiteConfig::current_site_config();
     if ($sub) {
         $this->access_token = $sub->AccessToken;
     } else {
         $this->access_token = false;
     }
 }
 public function __construct($url, $expiration = 3600)
 {
     parent::__construct($url, $expiration);
 }
 /**
  * Creates a new FlickrService object.
  * @param expiry - Set the cache expiry time or TTL of the response
  */
 function __construct($expiry = NULL)
 {
     parent::__construct('http://www.flickr.com/services/rest/', $expiry);
     $this->checkErrors = true;
 }
 public function __construct()
 {
     parent::__construct('https://www.flickr.com/services/rest/', $this->config()->flickr_soft_cache_expiry);
     $this->checkErrors = true;
 }
 /**
  * Constructor
  * @param Set the cache expiry interva. Defaults to 1 hour (3600 seconds) 
  * @see RestfulService
  * @return void
  */
 function __construct($expiry = NULL)
 {
     parent::__construct(self::$api_base_url, $expiry);
     $this->checkErrors = true;
 }
 /**
  * Initializes the Vidyard Service
  * @param {string} $videoID UUID of the video to lookup
  * @param {string} $apiKey Vidyard API Key
  * @param {int} $expiry Cache expiry
  */
 public function __construct($videoID, $apiKey, $expiry)
 {
     $this->videoID = $videoID;
     $this->apiKey = $apiKey;
     parent::__construct('https://api.vidyard.com/dashboard/v1/players/uuid=' . $videoID . '?auth_token=' . $apiKey, $expiry);
 }
 /**
  * Creates a new YoutubeService object.
  * @param expiry - Set the cache expiry time or TTL of the response
  */
 function __construct($expiry = NULL)
 {
     parent::__construct(self::$api_base_url, $expiry);
     $this->checkErrors = true;
     //set this to call errorCatch function on response
 }