they could consider this function to validate the status of a contact.
luisgagocasas opened this issue · 0 comments
luisgagocasas commented
when executing this function we will obtain the status of the contact when opting its data or editing the contact data.
- Consider this function or improve that function.
$people->getStatusCode('people/c0000000000000000');
public function getStatusCode($resourceName) { $url = self::PEOPLE_BASE_URL.$resourceName.'?personFields='.implode(',', self::PERSON_FIELDS); $response = $this->googleOAuth2Handler->performRequest('GET', $url); return $response->getStatusCode(); }
- I hope I have been helpful.