Exemplo n.º 1
0
 public function getResponses(Client $client)
 {
     $url = 'https://api.twitter.com/1.1/users/show.json';
     $response = $this->container->get('bound.curl_listener')->get($url, 'Get Twitter Profile', array('resource' => "twitter", 'request' => array('user_id' => $client->getTwitterId())));
     $this->responses['followers'] = $response['followers_count'];
     $this->responses['favourites'] = $response['favourites_count'];
 }
Exemplo n.º 2
0
 public function getResponses(Client $client)
 {
     $url = 'https://graph.facebook.com/' . $client->getFacebookId() . '/friends/?access_token=' . $client->getFacebookAccessToken();
     $response = $this->container->get('bound.curl_listener')->get($url, 'Get Facebook Datas');
     $this->responses['friends'] = $response['summary']['total_count'];
 }