Пример #1
0
 public function __construct($domain, $apiToken)
 {
     $this->domain = $domain;
     $this->apiToken = $apiToken;
     parent::__construct();
     $this->serviceUrl = 'http://' . $domain;
 }
Пример #2
0
 public function __construct($facebookUserId, $facebookToken)
 {
     parent::__construct();
     $this->fbUserId = $facebookUserId;
     $this->fbToken = $facebookToken;
     $this->authenticate();
 }
Пример #3
0
 /**
  * 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);
     }
 }
Пример #4
0
 public function __construct($appId, $appSecret)
 {
     parent::__construct();
     $this->appId = $appId;
     $this->appSecret = $appSecret;
 }
Пример #5
0
 public function __construct($username, $secret)
 {
     $this->username = $username;
     $this->secret = $secret;
     parent::__construct();
 }