Trying to get the youtube anaytics channel report from this scope:
https://www.googleapis.com/auth/yt-analytics.readonly
and two channel IDs
UC2QjLUbr7XeJpiYgflSuZ-w
UCH8FFDRgoEtYGm00oqIADUQ
First channel id worked perfectly.
Second id shows me this error (below image), any ideas?
Many Thanks
Forbidden [403] Errors [ Message[Forbidden] Location[ - ]
Reason[forbidden] Domain[global] ]
Related
I am trying to fetch data from Google Sheets via the Azure Data Factory. I have a data flow configured, and a Google Sheets Linked Service configured as well. The Google Sheets Linked Service is using an API key that has no Application Restrictions, and for API restrictions, it is restricted to Google Sheets. When I test the connection, it is successful. However, when I try to fetch a spreadsheet using the data flow in debug mode, I get the error:
at Source 'GoogleSheetsOutput': Failure to read most recent page request: DF-REST_001 - Error response from server: Some({
"error": {
"code": 403,
"message": "The caller does not have permission",
"status": "PERMISSION_DENIED"
}
}), Status code: 403. Please check your request url and body. (url:https://sheets.googleapis.com/v4/spreadsheets/<my_spreadsheet_id>/values/Sheet1!A2:B3,request body: None, request method: GET)
I made a service account, and shared the google sheet with the service account e-mail, and I also shared it with the admin on the account, which is where the API Key was made.
Any ideas what I need to do here? I would also prefer to use oauth / service account instead if possible, so I am happy to go down that route if there is some documentation I can follow.
"error": { "code": 403, "message": "The caller does not have permission", "status": "PERMISSION_DENIED" }
I tried to repro this and got the same error.
To solve this, I changed access of my google sheets from restricted to Anyone with the link
It worked and data is previewed without error.
We have problem with our prod pinterest application.
After getting token:
"{"access_token": "AabcYgRUKiaBI45HYM72teXO6fZaFQoEhVxkxaREoN3SR-
A4zAAAAAA", "token_type": "bearer", "scope": ["read_public",
"write_public", "read_private", "write_private", "read_relationships",
"read_write_all"]}"
Then we try get user info https://api.pinterest.com/v1/me
with this token Authorization: Bearer AabcYgRUKiaBI45HYM72teXO6fZaFQoEhVxkxaREoN3SR-A4zAAAAAA
and response
"{"status": "failure", "message": "Authorization failed.", "code": 3,
"data": null}"
Application status is In development now. Could it been changed by pinterest? Our dev app works as expected.
I got a response from Pinterest Help.
Feb 2, 09:32 PST
Thank you for providing all the information here. We're getting reports from multiple developers like yourself with the same issue. I'm going to be investigating further with our team and I'll let you know what we find!
No timeline right now on a fix, but I'll let you know when I get one.
"You're receiving that error response because your app has been denied policy approval."
Now only pinterest partners can use publish api.
Thanks for mentioning it in api doc and notification about changes.
I had the same error and wasted a few days trying to figure out why.
I have 2 accounts, user A and B. A is the dev and B is not a collaborator. I think that's why. The document says only collaborators can use the app without being approved by Pinterest.
The returned error message is useless. If it says so, I wouldn't have to create this ticket and the document is also lacking in my opinion.
Also, if non-collaborator can't be authenticated, the access_token step should fail first.
I know that my answer is weird but I was facing this error too. I just copy pasted the url from the Pinterest docs then added the access token then pasted it to the url search field. The mistake which I made is that there were extra spaces in the URL For example
https://api.pinterest.com/v1/me/pins/?
access_token=<YOUR-ACCESS-TOKEN>
&fields=id,creator,note
&limit=1
When you paste it to the url text field the "next line" (\n) would be replaced with spaces like %20. So you should rewrite your url in one line again in your editor or text file then paste it to the chrome url field.
Your final url should be like
https://api.pinterest.com/v1/me/pins/?access_token=<ACCESS-TOKEN>&fields=id,creator,note&limit=1
According to this documentation https://developers.google.com/+/web/api/rest/latest/people/listByActivity
g+ api supports thing as "getting resharers of a post"
But i can't get it to work.
This is a post url - https://plus.google.com/u/0/+AseemTejpal/posts/PAcm67KwXaS it's have 22 resharers atm.
My steps (after authorizing and obtaining access token with scopes https://www.googleapis.com/auth/plus.login and
https://www.googleapis.com/auth/plus.me):
GET https://www.googleapis.com/plus/v1/activities/z13hypi4rtjjx5ko404chx4pwzikebbaliw/people/resharers?access_token={my_access_token}
by executing above request i'm getting:
{
"kind": "plus#peopleFeed",
"etag": "\"Sh4n9u6EtD24TM0RmWv7jTXojqc/RL739Eu8qXAJMlvqfIb_fYCs2JA\"",
"title": "Google+ People By Activity: Resharer",
"totalItems": 0,
"items": []
}
for instance, plusoners works fine
GET https://www.googleapis.com/plus/v1/activities/z13hypi4rtjjx5ko404chx4pwzikebbaliw/people/plusoners?access_token={my_access_token}
result: https://pastebin.com/5khY6cAp
What am i doing wrong? Why resharers request returns 0 results? Do G+ supports obtaining resharers by api at all?
Thanks.
It looks like that has not worked for a while. I doubtful if Google has any plans to fix it anytime soon.
I need to upload considerable amount of videos on YouTube, so I have a c# application, upload one file each 5 minutes. The problems is, it intermittently throw "access forbidden". For example it worked for around 4 hours this morning, then it became moody again :D. Any same experience recently with YouTube API?
It's the error I receive sometimes, but not always, after successful authentication, when it tries to upload:
Google.Apis.Requests.RequestError
Access forbidden. The request may not be properly authorized. [403]
Errors [
Message[Access forbidden. The request may not be properly authorized.] Location[ - ] Reason[forbidden] Domain[youtube.common]
]
I have a rails4 app, from which I can put a wall post to logged in users facebook wall. Now what I want to do is read the FB comments for that given post and show then in my application.
I'm using Rails 4 and koala gems. Following is my code
Koala::Facebook::API.new(<user.oauth_token>).get_object("<facebook post id>") but I'm keep on getting this error.
{
"error": {
"message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100
}
}
And I cannot see any mismatching in the API, strange thing is I remember I'm using the same code about 3-4 weeks back and If I remember correctly it was working fine that time,
it seems like its not an authentication problem because, If I use
Koala::Facebook::API.new(<user.oauth_token>).get_object("me") it works fine.
You will get the GraphMethodException Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api when the user access token you specified does not have access to the Facebook object you are requesting. Here is a bug report with more specifics:
https://developers.facebook.com/bugs/1418832665047223/