plaid_dart 0.0.2

  • Readme
  • Changelog
  • Example
  • Installing
  • new44

A Plaid library for Dart developers. #

This package was inspired by plaid-node.

Warning this package is under development. Not safe for use in production

This package is currently being developed using Futures and no callbacks. I think the async/await form of development is easier than using callbacks.

I am modeling a lot of the code after the official plaid-node package mentioned above, but I trying to make it more modular, easier to test and hopefully easier for other to contribute.

I am developing this to use this in my personal and professional projects and will release this as a package once I am confident this package is working as intended.

Usage #

import 'package:plaid_dart/plaid_dart.dart';

main() async {
  var plaidClient = PlaidClient(
    environment: PlaidEnvironment.sandbox,
    clientId: '',
    publicKey: '',
    secret: '',
  );
  
  var publicToken = await plaidClient.getPublicToken('my_access_token');
  var item = await plaidClient.getItem('my_access_token');
}

Common Links

0.0.1 #

  • Initial version of the Plaid API written in Dart
  • Basic token, Item and Account methods

0.0.2 #

  • Fix formatting and include packages

example/plaid_dart_example.dart

import 'package:plaid_dart/plaid_dart.dart';
import 'package:http/http.dart';
import 'dart:convert';
import 'package:http/testing.dart';

main() async {
  var plaidClient = PlaidClient(
    clientId: 'my_client_id',
    environment: PlaidEnvironment.sandbox,
    publicKey: 'my_public_key',
    secret: 'my_secret',
    httpClient: MockClient((req) async =>
        Response(json.encode({'public_token': 'my_fake_public_token'}), 200)),
  );

  print('My environment is ${plaidClient.environment}');

  var publicToken = await plaidClient.createPublicToken('123456');
  print('Here is your public token ${publicToken}');
}

Use this package as a library

1. Depend on it

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


dependencies:
  plaid_dart: ^0.0.2

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:plaid_dart/plaid_dart.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
44
Learn more about scoring.

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

  • Dart: 2.5.1
  • pana: 0.12.21

Platforms

Detected platforms: Flutter, web, other

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

Maintenance suggestions

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

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+2 0.12.0+2
meta ^1.1.7 1.1.7
Transitive dependencies
async 2.4.0
charcode 1.1.2
collection 1.14.12
http_parser 3.1.3
path 1.6.4
source_span 1.5.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
mockito any
pedantic ^1.0.0 1.8.0+1
test ^1.0.0