开发者

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

开发者 https://www.devze.com 2023-02-04 11:22 出处:网络
I signed up for a new accou开发者_高级运维nt, registered for an Oauth token from the foursquare website.

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

精彩评论

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