2012-02-07 43 views
0

如何從可可中的四方請求獲得訪問令牌?我訪問這個認證從四方獲得令牌:iOS:如何保存,從四方得到訪問令牌

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響應:{ 「錯誤」: 「redirect_uri_mismatch」}

,我怎麼能保存和從這裏得到令牌? 任何建議傢伙?

+0

你讀過的文檔? https://developer.foursquare.com/overview/auth – jcm 2012-02-07 05:32:36

回答