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