【问题标题】:iOS: How to save, get access token from foursquareiOS:如何保存,从foursquare获取访问令牌
【发布时间】:2012-02-28 14:15:38
【问题描述】:

如何从 cocoa 中的foursquare请求中获取访问令牌?我正在访问此身份验证以从 Foursquare 获取令牌:

https://foursquare.com/oauth2/authenticate?client_id=XXXXXXXXXXXXXX&response_type=token

这有效吗?

我也试过这个: https://foursquare.com/oauth2/access_token?client_id=XXXXXXXXXXXXXX&client_secret=XXXXXXXXXXXXXX&grant_type=authorization_code&redirect_uri=http%3A%2F%2Flocalhost%2F&code=CODE

但返回此 JSON 响应:{"error":"redirect_uri_mismatch"}

我怎样才能从这里保存和获取令牌? 有什么建议吗?

【问题讨论】:

标签: iphone foursquare access-token


【解决方案1】:

查看https://developer.foursquare.com/resources/client 以获取针对移动开发人员的各种资源,包括一些用于进行四方授权的示例代码的链接:https://github.com/anoopr/core-data-talk/blob/master/example/Classes/FoursquareAuthViewController.m

【讨论】:

    猜你喜欢
    • 2023-03-07
    • 1970-01-01
    • 2013-04-26
    • 1970-01-01
    • 2013-11-10
    • 2012-10-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多