Example #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'];
 }