__construct() 공개 메소드

Constructor for the API Prepares the request URL and client api params
public __construct ( boolean | String $client_id = false, boolean | String $client_secret = false, string $redirect_uri = '', String $version = 'v2', string $language = 'en', string $api_version = DEFAULT_VERSION )
$client_id boolean | String
$client_secret boolean | String
$redirect_uri string
$version String Defaults to v2, appends into the API url
$language string
$api_version string https://developer.foursquare.com/overview/versioning
예제 #1
0
 /** 
  * Constructor
  * 
  */
 public function __construct($sVersion = 'v2', $sLanguage = 'en', $sApiVersion = '20140104')
 {
     $cfgFile = parse_ini_file("/aux0/WhoIsInTheLab/db.cfg", true);
     $config = isset($cfgFile['FOURSQUARE']) ? $cfgFile['FOURSQUARE'] : array();
     $this->m_sVenueId = isset($config['venue']) ? $config['venue'] : false;
     $this->m_nRefreshRate = isset($config['checkinPeriod']) ? $config['checkinPeriod'] : 24;
     $sClientId = isset($config['key']) ? $config['key'] : false;
     $sClientSecret = isset($config['secret']) ? $config['secret'] : false;
     $sRedirectUrl = isset($config['url']) ? $config['url'] : false;
     parent::__construct($sClientId, $sClientSecret, $sRedirectUrl, $sVersion, $sLanguage, $sApiVersion);
 }