foursquare 0.0.1+1 copy "foursquare: ^0.0.1+1" to clipboard
foursquare: ^0.0.1+1 copied to clipboard

outdated

Foursquare for Dart

Foursquare for Dart #

This is a Dart package for accessing Foursquare API endpoints and Foursquare-related objects. Both userless and authenticated access is supported.

Getting Started #

Add this git as a dependency in pubspec.yaml of your Flutter project.

dependencies:
  foursquare: '^0.0.1'

Import the package into your project.

import 'package:foursquare/foursquare.dart';

...

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

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

  Venue current = await Venue.current(authed, 40, -74);
  print(current.name);
  
  ...

}

TODO #

  • Constructors for userless and authenticated access
  • Basic GET implementation
  • Basic objects - User, Venue
  • Basic API endpoints - user/X, venues/search
  • Deeper object implementation
  • Deeper API endpoint implementation
  • dartdoc documentation
7
likes
0
pub points
30%
popularity

Publisher

verified publishermatthewhuie.com

Foursquare for Dart

Homepage

License

unknown (LICENSE)

Dependencies

http

More

Packages that depend on foursquare