public function __construct($domain, $apiToken) { $this->domain = $domain; $this->apiToken = $apiToken; parent::__construct(); $this->serviceUrl = 'http://' . $domain; }
public function __construct($facebookUserId, $facebookToken) { parent::__construct(); $this->fbUserId = $facebookUserId; $this->fbToken = $facebookToken; $this->authenticate(); }
/** * Happn constructor. * * @param string $facebookToken Facebook access token * @param float|null $lat Latitude of your current position * @param float|null $lon Longitude for your current position */ public function __construct($facebookToken, $lat = null, $lon = null) { parent::__construct(); $this->fbToken = $facebookToken; $this->lat = $lat; $this->lon = $lon; $this->authenticate(); if ($this->lat !== null && $this->lon !== null) { $this->setPosition($this->lat, $this->lon); } }
public function __construct($appId, $appSecret) { parent::__construct(); $this->appId = $appId; $this->appSecret = $appSecret; }
public function __construct($username, $secret) { $this->username = $username; $this->secret = $secret; parent::__construct(); }