没有 RequestToken 可供授权

发布于 2024-10-05 20:14:23 字数 740 浏览 3 评论 0原文

我创建了一个集成了 SoundCloudAPI 的 iPhone 应用程序。当我尝试运行该应用程序时,我收到以下错误消息:

Error Domain=SoundCloudAPIError Code=2001 "The operation couldn't be
completed. (NSURLErrorDomain error - 1012)" UserInfo=0x13cbc0
{httpErrorStatus=Error Domain=NSURLErrorDomain Code=-1012 "The
operation couldn't be completed. (NSURLErrorDomain error - 1012.)"
UserInfo=0x137b90 {NSErrorFailingURLKey=http://api.soundcloud.com/
oauth/access_token, NSErrorFailingURLStringKey=http://
api.soundcloud.com/oauth/access_toekn, NSUnderlyingError=0x13b590 "The
operation couldn't be completed. (kCFErrorDomainCFNetwork error -
1012.)"}, NSLocalizedDescription=The operation couldn't be completed.
(NSURLErrorDomain error - 1012.)} 

任何人请告诉我如何解决它。

谢谢。

I have created an iPhone application with integration of SoundCloudAPI. When I try to run the application I am getting following error message:

Error Domain=SoundCloudAPIError Code=2001 "The operation couldn't be
completed. (NSURLErrorDomain error - 1012)" UserInfo=0x13cbc0
{httpErrorStatus=Error Domain=NSURLErrorDomain Code=-1012 "The
operation couldn't be completed. (NSURLErrorDomain error - 1012.)"
UserInfo=0x137b90 {NSErrorFailingURLKey=http://api.soundcloud.com/
oauth/access_token, NSErrorFailingURLStringKey=http://
api.soundcloud.com/oauth/access_toekn, NSUnderlyingError=0x13b590 "The
operation couldn't be completed. (kCFErrorDomainCFNetwork error -
1012.)"}, NSLocalizedDescription=The operation couldn't be completed.
(NSURLErrorDomain error - 1012.)} 

Any one please tell me how to resolve it.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

汐鸠 2024-10-12 20:14:24

我已经解决了这个问题。

问题是;我没有在“回调 URL(OAuth 2 重定向 URI)”下输入回调 URL

要输入此内容,请按照以下步骤操作:

1. Go to http://soundcloud.com/you/apps/testapp/edit and click on "Add info for publication to the app gallery".
2. Enter your Callback URL under "Callback URL (OAuth 2 Redirect URI)"

在保存之前取消选择两个复选框,这样您的应用程序还不会发布。

I have resolved this problem.

Issue is; I did not entered the Callback URL under "Callback URL (OAuth 2 Redirect URI)"

To enter this, follow below steps:

1. Go to http://soundcloud.com/you/apps/testapp/edit and click on "Add info for publication to the app gallery".
2. Enter your Callback URL under "Callback URL (OAuth 2 Redirect URI)"

Deselect both checkboxes before saving, so your app doesn't get published just yet.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文