Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/netr0m/fluttersteem
[Pre-Alpha] Flutter/Dart Steem client library
https://github.com/netr0m/fluttersteem
api client dart flutter steem steemconnect steemjs
Last synced: 17 days ago
JSON representation
[Pre-Alpha] Flutter/Dart Steem client library
- Host: GitHub
- URL: https://github.com/netr0m/fluttersteem
- Owner: netr0m
- License: mit
- Created: 2018-02-28T20:23:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-03-05T23:33:09.000Z (over 6 years ago)
- Last Synced: 2024-10-17T06:09:52.512Z (27 days ago)
- Topics: api, client, dart, flutter, steem, steemconnect, steemjs
- Language: Dart
- Homepage: https://pub.dartlang.org/packages/fluttersteem
- Size: 61.5 KB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# fluttersteem
[![Pub](https://img.shields.io/pub/v/fluttersteem.svg)](https://pub.dartlang.org/packages/fluttersteem)
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 ++).
* [Installation and Usage](#installation-and-usage)
* [Authentication](#authentication)
* [Via Access Token](#via-access-token)
* [`SteemApiAuth`](#isteemapiauth)
* [Implicit Auth](#implicit-auth)# 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`.*
```dart
var client = SteemApiAuth.authorizeViaAccessToken('');
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.```dart
var auth = new SteemApiAuth('', '',
redirectUri: Uri.parse(''),
scopes: [
SteemApiScope.login,
SteemApiScope.vote,
// ...
]
);
```## Implicit Auth
Applications with no server-side component can implement implicit auth.To get a redirect URI:
```dart
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.# Credits
*This client library is written based on the code of [instagram_dart](https://github.com/thosakwe/instagram_dart)*