foursquare 0.0.1+2

  • Installing
  • Versions
  • new53

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.

  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(

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

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



  • [x] Constructors for userless and authenticated access
  • [x] Basic GET implementation
  • [x] Basic objects - User, Venue
  • [x] Basic API endpoints - user/X, venues/search
  • [ ] Deeper object implementation
  • [ ] Deeper API endpoint implementation
  • [ ] dartdoc documentation

0.0.1 #

  • Initial version
  • Support for users/X, venues/search

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  foursquare: ^0.0.1+2

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:foursquare/foursquare.dart';
Version Uploaded Documentation Archive
0.0.1+2 Apr 11, 2019 Go to the documentation of foursquare 0.0.1+2 Download foursquare 0.0.1+2 archive
0.0.1+1 Mar 30, 2019 Go to the documentation of foursquare 0.0.1+1 Download foursquare 0.0.1+1 archive
0.0.1 Mar 30, 2019 Go to the documentation of foursquare 0.0.1 Download foursquare 0.0.1 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Apr 22, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:foursquare/foursquare.dart.

Health suggestions

Format lib/foursquare.dart.

Run dartfmt to format lib/foursquare.dart.

Format lib/src/api.dart.

Run dartfmt to format lib/src/api.dart.

Format lib/src/user.dart.

Run dartfmt to format lib/src/user.dart.

Format lib/src/venue.dart.

Run dartfmt to format lib/src/venue.dart.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and foursquare.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
http ^0.12.0 0.12.0+2
Transitive dependencies
async 2.2.0
charcode 1.1.2
collection 1.14.11
http_parser 3.1.3
meta 1.1.7
path 1.6.2
pedantic 1.5.0
source_span 1.5.5
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6