Pinterest login through app

2019-05-30 01:36发布

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?

标签: ios pinterest
1条回答
Ridiculous、
2楼-- · 2019-05-30 02:08

The message is pretty explicit: Invalid Application ID.

Have you added the URL Type?

enter image description here

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.

查看更多
登录 后发表回答