koa-foursquare
Similar to foursquarevenues, except it uses koa-request instead of request to access foursquares venue API.
Installation
Install using npm:
npm install koa-foursquare --save
Example
Basic usage:
'use strict';var koa = ;var config = ;var foursquare = configfsclientID configfsclientSecret;var app = ; app 'first'; app; app;
Methods
getCategories
Returns a hierarchical list of categories applied to venues.
No parameters.
getVenues
Returns a list of venues near the current location, optionally matching a search term.
Param | Type | Description |
---|---|---|
params | Object |
url parameters |
Parameter options found here under Parameters section.
exploreVenues
Returns a list of recommended venues near the current location.
Param | Type | Description |
---|---|---|
params | Object |
url parameters |
Parameter options found here under Parameters section.
getVenue
Gives details about a venue, including location, mayorship, tags, tips, specials, and category.
Param | Type | Description |
---|---|---|
params | Object |
url parameters |
Parameter options found here under Parameters section.
Contributing
Please submit all issues and pull requests to the koa-foursquare repository!
Support
If you have any problem or suggestion please open an issue here.