Pinterest Authorization failed

我是研究僧i 提交于 2021-02-08 13:14:25

问题


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.


回答1:


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.




回答2:


"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.




回答3:


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.




回答4:


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


来源:https://stackoverflow.com/questions/48266654/pinterest-authorization-failed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!