This is a Flutter plugin for Foursquare OAuth authentication.
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
}
- Base Flutter project
- Basic Android implementation
- Basic iOS implementation
- Basic example Flutter app
- Deeper Android/iOS implementation
- More documentation