2010-12-01 26 views
0

我已經創建了一個集成了SoundCloudAPI的iPhone應用程序。當我嘗試運行應用程序時,我收到以下錯誤消息:No RequestToken授權

 
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.)} 

任何人都請告訴我如何解決它。

謝謝。

回答

0

我已經解決了這個問題。

問題是;我沒有進入回調URL「回調URL(OAuth的2重定向URI)」

要進入此之下,請按以下步驟操作:

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

取消保存之前的兩個複選框,這樣你的應用程序沒有得到尚未發佈。