google-api-php-client icon indicating copy to clipboard operation
google-api-php-client copied to clipboard

Wallet API error

Open pws2016 opened this issue 1 year ago • 0 comments

Hello, i try using the API Wallet and i creqte the API key in console with domain restriction. But the code return me an error: [{"message":"Login Required.","domain":"global","reason":"required","location":"Authorization","locationType":"header"}]

I use the PHP library and i write this code: $client = new Google\Client(); $client->setApplicationName('Wallet Objects App'); $client->setDeveloperKey(GOOGLE_WALLET_API_KEY);

How i can fix this?

Thanks

pws2016 avatar Jan 31 '24 20:01 pws2016