foursquare 0.0.1+2

  • README.md
  • CHANGELOG.md
  • 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.

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 #

  • [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:


dependencies:
  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
Popularity:
Describes how popular the package is relative to other packages. [more]
14
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
53
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

Platforms

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/README.md.

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.

Dependencies

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