fluttersteem 0.0.3 copy "fluttersteem: ^0.0.3" to clipboard
fluttersteem: ^0.0.3 copied to clipboard

outdatedDart 1 only

Unofficial Steem client library for Dart and Flutter

fluttersteem #

Pub

A Flutter/Dart Steem client library. This library includes support for authentication (SteemConnect V2) as well as Broadcasting (vote, comment, follow ++) and data retrieval (get followers, posts by users, users ++).

Authentication #

Via Access Token #

If you already have an access token, you can authenticate a client.

Note: The user property of the SteemClient will be null.

var client = SteemApiAuth.authorizeViaAccessToken('<access-token>');
var me = await client.users.self.get();

SteemApiAuth #

To perform authentication, use the SteemApiAuth class. All API scopes are included as SteemApiScope constants for convenience.

var auth = new SteemApiAuth('<client-id>', '<client-secret>',
  redirectUri: Uri.parse('<redirect-uri>'),
  scopes: [
    SteemApiScope.basic,
    SteemApiScope.publicContent,
    // ...
  ]
);

Implicit Auth #

Applications with no server-side component can implement implicit auth.

To get a redirect URI:

var redirectUri = auth.getImplicitRedirectUri();
window.location.href = redirectUri.toString();

After you have obtained an access token, use it to receive a SteemClient.

Endpoints #

The SteemClient contains several getters that correspond to endpoints. Each is an abstraction over a specific Steem API.

This client library is written based on the code of instagram_dart

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Unofficial Steem client library for Dart and Flutter

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

oauth2, owl

More

Packages that depend on fluttersteem