Pinterest login through app

巧了我就是萌 提交于 2019-12-08 06:17:16

问题


Whenever I try to authenticate with app the following msg comes:

{"status": "failure", "code": 283, "host": "coreapp-ngapi-prod-7c03bdd4", "generated_at": "Thu, 06 Aug 2015 08:02:11 +0000", "message": "The authorization grant is invalid", "data": "Invalid Application ID"}

How can I solve it?


回答1:


The message is pretty explicit: Invalid Application ID.

Have you added the URL Type?

Using this initializer:

PDKClient.configureSharedInstanceWithAppId("0000")

and this OAuth:

let permission = [PDKClientReadPublicPermissions]
PDKClient.sharedInstance().authenticateWithPermissions(permission,
    withSuccess: { (pdk :PDKResponseObject!) -> Void in
        println("success PDKResponseObject: \(pdk)")
    }) { (err :NSError!) -> Void in
        println("error NSError: \(err)")
    }

and assuming your client_id is correct, you should be in business.



来源:https://stackoverflow.com/questions/31912146/pinterest-login-through-app

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