burger_king_russia_api 1.0.0 copy "burger_king_russia_api: ^1.0.0" to clipboard
burger_king_russia_api: ^1.0.0 copied to clipboard

API for receiving data from Burger King Russia. The library has a class with static methods for retrieving data.

API for receiving data from Burger King Russia. The library has a class with static methods for retrieving data.

Usage #

Receive a dio response from Burger King Russia with information about restaurants, and outputting the request data to the console:

import 'package:burger_king_russia_api/burger_king_russia_api.dart';

void main() async {
  final bkRestaurants = await BK.getRestaurants();
  print('bkRestaurants: $bkRestaurants');
}

Output of product data:

import 'package:burger_king_russia_api/burger_king_russia_api.dart';

void main() async {
  final product = (await BK.getDishes()).data['response']['dishes'].first;
  print("""Id: ${product['id']}
Title: ${product['name']}
Image URL: ${await BK.getImageUrl(product['image']['name'])}""");
}

OUTPUT:
Id: 1549
Title: Комикс
Image URL: https://orderapp-static.burgerkingrus.ru/x512/mobile_image/92e135c02698e6d541e6099d3e58543d.png
0
likes
160
pub points
14%
popularity

Publisher

unverified uploader

API for receiving data from Burger King Russia. The library has a class with static methods for retrieving data.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

dio

More

Packages that depend on burger_king_russia_api