/react-native-foursquare-api

react-native wrapper for foursquare api using fetch

Primary LanguageJavaScriptMIT LicenseMIT

react-native-foursquare-api

react-native wrapper for foursquare api using fetch

This is currently a wrapper on the foursquare v2 API (https://api.foursquare.com/v2).

Example

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);
      });

Features

Venues (/venues)

API Documentation: Venues API

Implemented Methods: see wrapper

Notes

  • Pull requests are welcome
  • Only venues feature (mostly) built out so far

Useful Link

License: MIT