YelpFusion class
A Dart class to get all the endpoints of the Yelp Fusion API.
Constructors
- YelpFusion({required String apiKey})
- Requires API Key. Sets GET request headers.
Properties
Methods
-
fetchAutocomplete(
{required String text, required double latitude, required double longitude, String locale = "en_US", bool asObject = true}) → Future - Get autocomplete suggestions for search keywords, businesses and categories, based on the input text.
-
fetchBusinessDetails(
{required String id, String locale = "en_US", bool asObject = true}) → Future - Get rich business data, such as name, address, phone number, photos, Yelp rating, price levels and hours of operation.
-
fetchBusinessReviews(
{required String id, String locale = "en_US", bool asObject = true}) → Future - Get up to three review excerpts, the URL to the full review, the Yelp rating with each review excerpt as well as the name and profile photo of the reviewer.
-
fetchBusinessSearch(
{String? term, String? location, double? latitude, double? longitude, int? radius, String? categories, String? locale, int? limit, int? offset, String? sortBy, String? price, bool? openNow, int? openAt, String? attributes, bool asObject = true}) → Future - Get up to 1000 businesses based on the provided search criteria.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited