yelp_fusion_client 0.2.0+3-hotfix yelp_fusion_client: ^0.2.0+3-hotfix copied to clipboard
A Dart Client to access the business endpoints of Yelp Fusion API.
How to use the Yelp Fusion Client #
- Create an Instance of the Client API and Specify Your API Key as the Parameter
final YelpFusion api = YelpFusion(apiKey: '<Your Yelp Fusion API Key>');
- Use the YelpFusion Object to Access Various Methods
api.fetchBusinessDetails(id: 'north-india-restaurant-san-francisco', asObject: true)
.then((details) => print(details.alias));
Note: The asObject
parameter in each method describes whether the method should return data in pure json format or as a dart Object which can be used to access individual components of the API response.
See: yelp_fusion_client/test for example dart testing cases.