Skip to content

Latest commit

 

History

History
43 lines (37 loc) · 1.01 KB

README.md

File metadata and controls

43 lines (37 loc) · 1.01 KB

Foursquare OAuth for Flutter

This is a Flutter plugin for Foursquare OAuth authentication.

Getting Started

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

dependencies:
  foursquare_oauth:
    git: git://github.com/matthewhuie/foursquare-oauth-flutter.git

Import and implement the package into your project.

import 'package:foursquare_oauth/foursquare_oauth.dart';

...

Future<void> authenticate() async {
  String accessToken;
  try {
    accessToken = await FoursquareOAuth.authenticate(
      'FOURSQUARE_CLIENT_ID',
      'FOURSQUARE_CLIENT_SECRET');
  } on PlatformException {
    setState(() {
      _message = 'Error!';
    });
  }
  // Do something with accessToken
}

TODO

  • Base Flutter project
  • Basic Android implementation
  • Basic iOS implementation
  • Basic example Flutter app
  • Deeper Android/iOS implementation
  • More documentation

Links