private function __construct()
 {
     $this->instagram = new Instagram(array('apiKey' => getenv('INSTAGRAM_CLIENT_ID'), 'apiSecret' => getenv('INSTAGRAM_CLIENT_SECRET'), 'apiCallback' => 'http://relive.space/'));
     $access_token = getenv('INSTAGRAM_ACCESS_TOKEN');
     $this->instagram->setAccessToken($access_token);
     $this->provider = \relive\models\Provider::firstOrCreate(['providerName' => 'instagram', 'providerSite' => 'https://www.instagram.com/']);
 }
Exemple #2
0
 private function __construct()
 {
     $client = new \Google_Client();
     $client->setApplicationName("Relive");
     $client->setDeveloperKey(getenv("GPLUS_API_KEY"));
     $this->gplus = new \Google_Service_Plus($client);
     $this->provider = \relive\models\Provider::firstOrCreate(['providerName' => 'googleplus', 'providerSite' => 'https://plus.google.com/']);
 }
Exemple #3
0
 private function __construct()
 {
     $access_token = getenv('TWITTER_ACCESS_TOKEN');
     $access_token_secret = getenv('TWITTER_ACCESS_TOKEN_SECRET');
     $api_key = getenv('TWITTER_API_KEY');
     $api_secret = getenv('TWITTER_API_SECRET');
     $this->twitter = new TwitterOAuth($api_key, $api_secret, $access_token, $access_token_secret);
     $this->provider = \relive\models\Provider::firstOrCreate(['providerName' => 'twitter', 'providerSite' => 'https://www.twitter.com/']);
 }