开发者

Am I doing something wrong on my Foursquare venue search API?

I signed up for a new accou开发者_高级运维nt, registered for an Oauth token from the foursquare website.

Then I hit this in my browser:

https://api.foursquare.com/v2/venues/search?ll=40.7,-74&callback=location&oauth_token=my_token_here

But that doesn't work!

It says:

location({"meta":{"code":401,"errorType":"invalid_auth","errorDetail":"OAuth token not found or has been revoked."},"response":{}});


Solved.

You have to provide your client secret and client id.


Example Call: https://api.foursquare.com/v2/venues/search?ll=37.835819,-87.931824&client_secret=XXX&client_id=YYYY

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜