Skip to content

A simple, promise based API module for the FourSqaure API dependent on jQuery.

License

Notifications You must be signed in to change notification settings

mahirshah/foursqaureapimodule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FourSqaure API Module

A simple, promise based JS module for the FourSqaure API dependent on jQuery.

Allows you to easily get venue information, menus, and venue reviews.

Init the module first

Foursqaure.init({
  id: 'CLIENT_ID',
  secret: 'CLIENT_SECRET'
})

Get venue inforation

FourSqaure.getRestaurants({
        'near': '...',
        'limit': 50,
        'categoryId': '...',
        ...
}).then(function(response) {
  ...
});

Get the menu for a particular venue

FourSqaure.getRestaurantMenu(venueObject, {...queryParams...});

Get the reviews for a particular venue

FourSqaure.getRestaurantReviews(venueObject, {...queryParams...});

About

A simple, promise based API module for the FourSqaure API dependent on jQuery.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published