react-native wrapper for foursquare api using fetch
This is currently a wrapper on the foursquare v2 API (https://api.foursquare.com/v2
).
var foursquare = require('react-native-foursquare-api')({
clientID: 'YOUR_CLIENTID',
clientSecret: 'YOUR_CLIENTSECRET',
style: 'foursquare', // default: 'foursquare'
version: '20140806' // default: '20140806'
});
// see respective api documentation for list of params you could pass
var params = {
"ll": "10.652814,-61.3969835",
"query": 'Movie Towne'
};
foursquare.venues.getVenues(params)
.then(function(venues) {
console.log(venues);
})
.catch(function(err){
console.log(err);
});
API Documentation: Venues API
Implemented Methods: see wrapper
- Pull requests are welcome
- Only venues feature (mostly) built out so far
License: MIT