squareapi 0.2.0+1

  • README.md
  • Example
  • Installing
  • Versions
  • new43


A Dart implementation of the Square API client.

This is mostly an implementation using the API client generator reflutter. It does not attempt to implment any business logic, just marshall data back and forth over the wire in a standard manner.


For usage examples, see the examples folder.

Features and bugs

Please file feature requests and bugs at the issue tracker.



  • Initial release. All major Square APIs are supported and should work, but is largely untested.


import 'package:squareapi/squareapi.dart';

void main() async {
  final token = 'sandbox-sq0atb-idIVNrpqYfdY1Dz8IInnYA';
  final api = ConnectApi(token);

  final result = await api.locations.listLocations();

Use this package as a library

1. Depend on it

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

  squareapi: ^0.2.0+1

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:squareapi/squareapi.dart';
Version Uploaded Documentation Archive
0.2.0+1 Nov 27, 2018 Go to the documentation of squareapi 0.2.0+1 Download squareapi 0.2.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 Dec 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7


Detected platforms: Flutter, web, other

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

Health issues and suggestions

Document public APIs (-10 points)

1259 out of 1259 API elements (library, class, field or method) have no adequate dartdoc content. Good documentation improves code readability and discoverability through search.

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
http ^0.12.0 0.12.0
json_annotation ^2.0.0 2.0.0
reflutter ^0.5.1 0.5.2
Transitive dependencies
analyzer 0.32.6 0.34.0
args 1.5.1
async 2.0.8
charcode 1.1.2
collection 1.14.11
convert 2.0.2
crypto 2.0.6
csslib 0.14.6
front_end 0.1.4+2 0.1.7
glob 1.1.7
html 0.13.3+3
http_parser 3.1.3
kernel 0.3.4+2 0.3.7
logging 0.11.3+2
meta 1.1.6
package_config 1.0.5
path 1.6.2
plugin 0.2.0+3
source_span 1.4.1
string_scanner 1.0.4
typed_data 1.1.6
utf 0.9.0+5
watcher 0.9.7+10
yaml 2.1.15
Dev dependencies
build_runner ^1.1.1
json_serializable ^2.0.0
reflutter_generator ^0.5.1
source_gen ^0.9.1