nevíte někdo jestli nejsou nějaké změny? z ničeho nic přestalo fungovat zadávání nového kontaktu, update jde ale nový nejde....
use RapidWeb\GooglePeopleAPI\GooglePeople;
use RapidWeb\GoogleOAuth2Handler\GoogleOAuth2Handler;
use RapidWeb\GooglePeopleAPI\Contact;
$googleOAuth2Handler = new GoogleOAuth2Handler($clientId, $clientSecret, $scopes, $refreshToken);
$people = new GooglePeople($googleOAuth2Handler);
$contact = new Contact($people);
$contact->names = new stdClass;
$contact->names->givenName = 'Testy';
$contact->names->familyName = 'McTest Test';
$contact->save();
PHP Fatal error: Uncaught exception 'Exception' with message '{
"error": {
"code": 400,
"message": "Invalid JSON payload received. Unknown name \"parent\": Cannot bind query parameter. Field 'parent' could not be found in request message.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"description": "Invalid JSON payload received. Unknown name \"parent\": Cannot bind query parameter. Field 'parent' could not be found in request message."
}
]
}
]
}
}
' in /var/www/moduly/google/kontakty/vendor/rapidwebltd/php-google-people-api/src/GooglePeople.php:132
Stack trace:
#0 /var/www/moduly/google/kontakty/vendor/rapidwebltd/php-google-people-api/src/Contact.php(16): RapidWeb\GooglePeopleAPI\GooglePeople->save(Object(RapidWeb\GooglePeopleAPI\Contact))
#1 /var/www/ttt.php(24): RapidWeb\GooglePeopleAPI\Contact->save()
#2 {main}
thrown in /var/www/moduly/google/kontakty/vendor/rapidwebltd/php-google-people-api/src/GooglePeople.php on line 132