Skip to content

EOLed/achan.cordova.yelp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

achan.cordova.yelp

Angular provider to query the Yelp API

Configuration

angular.module('myApp', ['achan.cordova.yelp'])
  .config(function (yelpProvider) {
    yelpProvider.identify({
      consumerKey: '<consumer key>',
      consumerSecret: '<consumer secret>',
      token: '<token>',
      tokenSecret: '<token secret>'
    });
  });

Usage

angular.module('myapp').controller('MyController', function (yelp) {
  yelp.search({ category_filter: 'restaurants', radius_filter: 4000 })
      .then(function (data) {
        // data returned from Yelp
        console.log(JSON.stringify(data));
      });
});

Supported yelp#search parameters can be found in the Yelp Search API documentation.

About

Angular provider to query the Yelp API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published