我的foursquare身份验证、callback_url和应用程序网站是什么? [英] What is my foursquare authenticaion, callback_url and application website?

查看:18
本文介绍了我的foursquare身份验证、callback_url和应用程序网站是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的 iphone 中集成 Foursquare API,但一开始就卡住了:注册我的应用程序.它询问我的 callback_url 和应用程序网站,以便注册我的应用程序并获取我的身份验证代码,但我不明白我应该为这些链接输入什么,因为我没有这个应用程序的域名.它只是一个没有网站的应用程序.我花了很多时间试图弄清楚在foursquare开发人员网站上的这两个字段中应该放什么,但我不知道我需要做什么.如果我的 iPhone 应用程序没有网站,有人知道我的 callback_url 和应用程序网站是什么吗?

Im trying to integrate the foursquare API in my iphone but am stuck On the very beginning: registering my app. Its asking me for my callback_url and application website inorder to register my app and get my authentication code but I dont understand what Im supposed to put in for those links since I dont have a domain name for this app. Its just an app with no websites. I have been spending so many hours trying to figure out what to put in those two fields on the foursquare developer site but I have no idea what I need to do. Anyone know what my callback_url and application website is if my iphone app does not have a website?

推荐答案

当您创建自己的移动应用程序时,输入什么回调 URL 并不重要.您可以将回调 URL 设置为任何有效的 URL,但出于安全原因,最好使用您控制的 URL(以便其他人无法获得令牌).

When you create your own mobile application, it does not really matter what callback URL you enter. You can set the callback URL to any valid URL, but for security reasons it is favorable to use one under your control (so that nobody else can get the token).

请参阅基于手机或客户端的应用程序"的 Foursquare 文档:https://developer.foursquare.com/overview/auth

Please see the Foursquare documentation for "Phone-based or client-side application": https://developer.foursquare.com/overview/auth

还有一个指向 iOS 代码示例的链接,该示例展示了如何直接在设备上完成 OAuth 过程:https://github.com/anoopr/core-data-talk/blob/master/example/Classes/FoursquareAuthViewController.m

There is also a link to an iOS code sample that shows how the OAuth process can be done directly on the device: https://github.com/anoopr/core-data-talk/blob/master/example/Classes/FoursquareAuthViewController.m

这篇关于我的foursquare身份验证、callback_url和应用程序网站是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆