开发者

Foursquare userless search iOS

is there a way to fetch the venues search in iOS without the user entering his password or showing some foursquare oauth website?

I don't think that this oAuth makes any sense for this kind of request, it should be just an REST api like so "https://api.foursquare.com/v2/venues/search?ll=-27.58818,-48.523248&client_id=JN00ABQBOCK5V54FQ1TWQFLOOI开发者_如何转开发DU12UAZXURHXGXNK0ESJBY&client_secret=14ES1NXTCL1XC5HSLBUT4LWE4ROEDGNYKKWGGERZQGUKQ5JC"

but this one is deprecated =/

Any thoughts?


It's not deprecated, you're just missing the "versioning" parameter that specifies what version of the API you're trying to use.

Requesting https://api.foursquare.com/v2/venues/search?ll=-27.58818,-48.523248&client_id=JN00ABQBOCK5V54FQ1TWQFLOOIDU12UAZXURHXGXNK0ESJBY&client_secret=14ES1NXTCL1XC5HSLBUT4LWE4ROEDGNYKKWGGERZQGUKQ5JC&v=20111107 will remove the warning you saw in your response


Add a query string parameter to your request as follows..

&v=20111119 // Choose a proper version.

Update: this is actually a date. So make sure you send current date in yyyymmdd format against v parameter.


According to FourSquare's docs page on venue searching an acting user is no longer necessary:

Some endpoints (e.g. venue search) allow you to not act as any particular user. We will return unpersonalized data suitable for generic use, and the performance should be slightly better. In these cases, pass your client ID as client_id and your client secret as client_secret. Although the draft 11 of the OAuth2 spec provides a mechanism for consumers to act via token entitled Client Credentials, we do not currently support this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜