I'm using Google API OAuth2 to authentificate my users (and I'm requesting a few scopes such as calendar).
This part is working but when I'm trying to access the calendar, I'm getting the following error output:
An error occured while fetching events: { "error": { "errors": [ {
"domain": "global", "reason": "authError", "message": "Invalid
Credentials", "locationType": "header", "location": "Authorization" }
], "code": 401, "message": "Invalid Credentials" } }
Is there some way to get (extra) debugging info on the server or on google api side ?
Related
So this is my process flow for sending a new email.
I send draftId from front end Gmail to back-end server, and then from draftId, I get messageId.
When I try to later get info on that messageId, the Gmail API Service returns:
"error": {
"errors": [
{
"domain": "global",
"reason": "notFound",
"message": "Not Found"
}
],
"code": 404,
"message": "Not Found"
}
}
I was able to research and look into message history API to see that for some reason, that sent message is marked as deletedMessages.
However, the message shows as in my Sent emails so it is clearly not deleted.
This appears to have started showing up recently as well.
Does anyone have any idea why this happens?
I have created new YouTube account for test purposes. I got an accessToken for this account and tried to get my own subscriptions via YouTubeAPI.
I use Google APIs Client Library for PHP.
$data = $service->subscriptions->listSubscriptions('snippet', ['mine' => 'true']);
I get an error:
"domain": "youtube.subscription",
"reason": "subscriberNotFound",
"message": "The subscriber identified with the request cannot be found.",
"locationType": "parameter",
"location": "channelId"
"code": 404,
"message": "The subscriber identified with the request cannot be found."
I tried to change the YouTube account, and I got a successful result on my old account. But I want to get info on my new account.
What the problem?
So i have run through the guide of how to read data from a google sheet using their API. All works fine until i want to read from any sheet other than the one given in the example.
https://developers.google.com/sheets/api/quickstart/php
is there something else that i need to change as when I update the spreadsheet id to one of mine i just get the following
Fatal error: Uncaught exception 'Google_Service_Exception' with message '{
"error": {
"code": 400,
"message": "Unable to parse range: Class Data!A2",
"errors": [
{
"message": "Unable to parse range: Class Data!A2",
"domain": "global",
"reason": "badRequest"
}
],
"status": "INVALID_ARGUMENT"
}
}
Any help would be greatly appreciated.
sorry guys the issue was that i was declaring the range wrong problem now sorted.
Right now i can get the user's name,avatar,email of the user but when i try to use this for location https://graph.facebook.com/v2.2/1234567890/location im getting this message
{
"error": {
"message": "Unknown path components: /location",
"type": "OAuthException",
"code": 2500
}
}
resource url for user location is {id}/locations.
https://graph.facebook.com/v2.2/1234567890/locations
unfortunately , locations resource was deprecated in v2.0 or higher.accessing the above url will return
{
"error": {
"message": "(#12) user locations API is deprecated for versions v2.0 and higher",
"type": "OAuthException",
"code": 12
}
}
I am trying to get Google Play API subscription details using PHP and using following url to get purchase data :
https://www.googleapis.com/androidpublisher/v1/applications/[PACKAGE]/subscriptions/[SKU]/purchases/[PURCHASE_TOKEN]?access_token=[ACCESS_TOKEN]
I am getting the following error:
{
"error": {
"errors": [
{
"domain": "androidpublisher",
"reason": "developerDoesNotOwnApplication",
"message": "This developer account does not own the application."
}
],
"code": 401,
"message": "This developer account does not own the application."
}
}
Please help me sort out.
Just providing the URL does not help you get data of any application. How can you think so.? Isnt it insecure.? You have to get proper data by which you can at least prove ownership for the app..