fluig_oauth1 1.0.1
fluig_oauth1: ^1.0.1

Dart native js
Flutter Android iOS web

A starting point for Dart libraries or applications.

OAuth1 Fluig Totvs #

This lib is provide by using core of https://pub.dev/packages/oauth1. Thanks.

Usage #

Add to pubspec.yaml:

dependencies:
  fluig_oauth1: ^1.0.0

Please use like below.

import 'package:fluig_oauth1/fluig_oauth1.dart';

void main() {

  String url = "<url_fluig>";

  const String apiKey = '<client_token>';
  const String apiSecret = '<client_token_secret>';
  var clientCredentials = ClientCredentials(apiKey, apiSecret);

  var user = User("<user>","<pass>");

  var fluigConnect = FluigConnect(url,clientCredentials,user);

  fluigConnect.connect().then((client) => {

    client. get (url + 'api/public/2.0/users/getCurrent').then((res) {

      print(res.body);

    })

  }).catchError((err) {

    print("mostrando erro: "+err.toString());

  });

}


0
likes
80
pub points
0%
popularity

A starting point for Dart libraries or applications.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

aldoiguerra@gmail.com

License

BSD (LICENSE)

Dependencies

crypto, http

More

Packages that depend on fluig_oauth1