Skip to content

quangduz/react-native-foursquare-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

react-native wrapper for foursquare api using fetch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%