我做错了什么?
窗口打开并显示给我:{“ error_type”:“ OAuthException”,“ code”:400,“ error_message”:“开发人员角色不足”}
var oauthswift = OAuth2Swift(
consumerKey: "529815800985564",
consumerSecret: "3ad7d985faad1ddd06acba6b2227d0da",
authorizeUrl: "https://api.instagram.com/oauth/authorize",
responseType: "code"
)
let handle = oauthswift.authorize(
withCallbackURL: URL(string: "https://badyi.github.io")!,
scope: "user_profile,user_media", state:"1") { result in
switch result {
case .success(let (credential, response, parameters)):
print(credential.oauthToken)
// Do your request
case .failure(let error):
print(error.localizedDescription)
}
}
转到角色> Instagram用户并添加您的Instagram帐户。然后转到https://www.instagram.com/accounts/manage_access/从您的应用程序接受Tester邀请。