在Twitter的Developer Documentation中,我们可以阅读以下内容:
Mobile apps with app-specific protocols must use just the protocol
Example:
You want to use example://authorize as your callback URL
Add this to both your Twitter app dashboard and your call to oauth/request_token: example://
但是;在Developer's Dashboard中,我无法输入仅协议的URL或任何以http或https开头的URL。
我只希望使用协议URL的原因是为了可以在使用OAuthSwift访问Web API的iOS应用中使用。
有人有什么想法吗?
位于https://oauthswift.herokuapp.com/callback的Web应用将执行重定向。如果使用URL https://oauthswift.herokuapp.com/callback/target访问该网站,则它将重定向到oauth-swift:// oauth-callback / target。
所以: