application\modules\social\components\services\Odnoklassniki::fetchAttributes PHP Method

fetchAttributes() protected method

protected fetchAttributes ( )
    protected function fetchAttributes()
    {
        $info = $this->makeSignedRequest('http://api.odnoklassniki.ru/fb.do', array('query' => array('method' => 'users.getCurrentUser', 'format' => 'JSON', 'application_key' => $this->client_public, 'client_id' => $this->client_id)));
        $this->attributes = json_decode(json_encode($info), true);
        $this->attributes['id'] = $info->uid;
        $this->attributes['name'] = $info->first_name . ' ' . $info->last_name;
    }