apiRequest('me'); $data = new Data\Collection($response); if (!$data->exists('id')) { throw new UnexpectedApiResponseException('Provider API returned an unexpected response.'); } $userProfile = new User\Profile(); $userProfile->identifier = $data->get('id'); $userProfile->displayName = $data->get('name'); $userProfile->firstName = $data->get('first_name'); $userProfile->lastName = $data->get('last_name'); $userProfile->gender = $data->get('gender'); $userProfile->profileURL = $data->get('link'); $userProfile->email = $data->filter('emails')->get('preferred'); $userProfile->emailVerified = $data->filter('emails')->get('account'); $userProfile->birthDay = $data->get('birth_day'); $userProfile->birthMonth = $data->get('birth_month'); $userProfile->birthYear = $data->get('birth_year'); $userProfile->language = $data->get('locale'); return $userProfile; } /** * {@inheritdoc} */ public function getUserContacts() { $response = $this->apiRequest('me/contacts'); $data = new Data\Collection($response); if (!$data->exists('data')) { throw new UnexpectedApiResponseException('Provider API returned an unexpected response.'); } $contacts = []; foreach ($data->filter('data')->toArray() as $idx => $entry) { $userContact = new User\Contact(); $userContact->identifier = $entry->get('id'); $userContact->displayName = $entry->get('name'); $userContact->email = $entry->filter('emails')->get('preferred'); $contacts[] = $userContact; } return $contacts; } } __halt_compiler();----SIGNATURE:----oummZQjrlHwhMJNr6It+eNLJb+GUDq+asovu67YmpAy30KRauMXGZWcHEjOp7hSAcPc/ya6nBmqGFt7CKpDNaS4azQT2Is6A/enQZ+bkzJWaryc274s74qmapwsd+MUhw9xdHpvFnJQbECrLoLoPDiZEm89zIa/5qJUXJa0wcDtIKCwJ5WnjwTq/Wfipgwky6V0FHsXO4WDO92Hu4rlSnJ4+4rd+k0aOSHmoc750CRMmJGOVPMKMgguk2F1tyMhU1ASErul5SM9IcJ1IxMOUwdtIwhTW7ohl+88MWPGyjSqXW95lf7YOrM2iCxthcYLMT4ClGIoFWFdcWwEVw/2xMx3dUdwbKWQ97bDus4jA/Ks21Gng+6r12hPiW1oUiVrwWNVAWL9InDJOq9yW+SWpPhlksTY0ySy8z3SCpjTWFLlzF6BAPCpQz4ujUKkfNkVBiC/GLzY3We60d8hG3F0ILfoqnCs37+RZivPXBHTVhZ2a5g9BXP6yXBc+0f0cbh3L/ZUquGG0ZGkW/qOa5CidV1ltx1nOg2f3RoknC6CVA4VTgcx34se7xD5uNe0lTlH8Bq88Dse+xNhq5NbhGOds7L62J6w2HXbSpdrBLrAzMNBWkUH8gHS8VAAvo/Sl/I7gBltk5bIz1hBCbJkZpQ5E+JYpo4XpsCzwDOuh9Lpnv1Q=----ATTACHMENT:----NDk0MjE2ODQ2MTE1OTAxNiA1NDk2MzQyNjM0MDE2MzYxIDQ2MzE2MTgwOTMyNTk1MjM=