EKet
EKet

Reputation: 7314

foursquare api get list of venues with jquery or c#

Problem: I cannot seem to be able to generate tokens or access OAuth 2. I can't seem to find any examples of connecting to OAuth, then using the foursquare api. Has anyone done this before? I've been trying with Jquery but no luck, I'm not very strong with ajax.

Could anyone help me with an example of authenticating, then requesting a list of venues near a location using the api?

I wouldn't mind either Jquery or C# or both if you're super talented and eager to teach.

Thanks so much!

Upvotes: 1

Views: 2008

Answers (1)

Matthew Rathbone
Matthew Rathbone

Reputation: 8269

The foursquare developer page actually has a pretty detailed walkthrough of how to handle authentication using oauth2:

https://developer.foursquare.com/docs/oauth.html

Also, you might find this project helpful, it's a jQuery library for the foursquare API:

https://github.com/praized/marelle

Lastly, for an example of what an api call for nearby venues looks like, you can use the explorer feature of the foursquare developer page. It shows you the json results right there on the page along with the url that generated them:

https://developer.foursquare.com/docs/explore.html#req=venues/search%3Fll%3D40.7,-74

Hope that helps.

Upvotes: 2

Related Questions