foursquare 0.1.0
foursquare: ^0.1.0 copied to clipboard

Foursquare for Dart and Flutter, enabling location-based experiences for mobile, web, and server applications.

example/main.dart

import 'package:foursquare/foursquare.dart';

void main() async {
  // Used for userless requests
  API userless = API.userless(
    'FOURSQUARE_CLIENT_ID', 
    'FOURSQUARE_CLIENT_SECRET');

  // Used for authenticated requests
  API authed = API.authed('OAUTH_ACCESS_TOKEN');

  Venue current = await Venue.current(userless, 43.6532, -79.3832);
  print('I am at ${current.name}.');

  User self = await User.get(authed);
  print('I am ${self.firstName} ${self.lastName}.');
}
6
likes
80
pub points
60%
popularity

Publisher

matthewhuie.com

Foursquare for Dart and Flutter, enabling location-based experiences for mobile, web, and server applications.

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

http

More

Packages that depend on foursquare