设置x回调网址(Setting up an x

编程入门 行业动态 更新时间:2024-10-26 07:23:07
设置x回调网址(Setting up an x-callback url)

我需要为Soundcloud API做这件事,我不知道这是关于什么或如何去做。 Soundcloud API开发者网站上有一个表单,您可以在其中保存回调网址,但我不确定我应该在那里输入什么样的信息。

任何帮助?

I need to do this for the Soundcloud API and I have no idea what this is about or how to do it. There is a form on the Soundcloud API Developer website where you save your callback URL, but I'm not sure what sort of information I should input there.

Any help?

最满意答案

我相信这个回调url是oauth认证,对吗? 我需要为twitter做同样的事情,并最终为我的应用程序(即appname:// oauth)设置自定义url方案,并将其用作回调url。

如果你想试试这个, 请参阅这篇关于如何通过自定义网址方案启动你的应用的文章 。 特别是twitter,你可以看到jaanus的一些实现细节和github项目的文章 。

虽然我还没有整合soundcloud,但我确实发现他们有一个Objective-C api,你可能想看看你是否已经在这里 。

更新

所以我提到的是真实的 - 你可以使用自定义的url方案等来处理身份验证,但它不是完全必需的。 我发现这篇文章概述了两种身份验证方法 - 第一种仅适用于ios4并且只需很少的代码。 第二个应该在3.x上工作,并使用我上面提到的自定义url方法(并概述如何使用它来进行身份验证)。

所以要一劳永逸地回答你的问题,我建议你:

请阅读本自述文件以获取objective-c soundcloud api。

阅读本设置指南 。

然后阅读本使用指南 。

看看这个测试iPhone应用程序 。

希望这可以帮助!

i believe this callback url is for oauth authentication, correct? i needed to do the same thing for twitter and ended up setting up a custom url scheme for my app (ie appname://oauth) and using this as the callback url.

in case you want to try this, see this article on how to launch your app via a custom url scheme. specifically for twitter, you can see jaanus's post on some implementation details and the github project.

while i haven't integrated with soundcloud, i did find that they have an objective-c api that you may want to check out if you aren't already here.

update

so what i mentioned is true - that you can use a custom url scheme and such to handle the authentication, but it's not exactly required. i found this article which outlines two methods for authentication - the first is for ios4 only and requires very little code. the second should work on 3.x and uses the custom url method i mentioned above (and outlines how to use it to authenticate).

so to answer your question once and for all, i suggest you:

look at this readme for the objective-c soundcloud api.

read this setup guide.

then read this usage guide.

check out this test iphone application.

hope this helps!

更多推荐

API,Soundcloud,information,sort,电脑培训,计算机培训,IT培训"/> <meta name=&qu

本文发布于:2023-08-07 00:59:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1458574.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:回调   网址   Setting

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!