cielo_oauth 1.1.1 copy "cielo_oauth: ^1.1.1" to clipboard
cielo_oauth: ^1.1.1 copied to clipboard

A Flutter package that helps to get oauth token to use on operations available on API REST of API Cielo eCommerce.

example/main.dart

import 'package:cielo_oauth/cielo_oauth.dart';

void main(List<String> arguments) async {
  var oauth = OAuth(
    clientId: "YOUR-CLIENT-ID",
    clientSecret: "YOUR-CLIENT-SECRET",
    environment: Environment.PRODUCTION,
  );
  var result = await oauth.getToken();

  if (result.accessTokenResponse != null)
    print("Access Token: ${result.accessTokenResponse.accessToken}");

  if (result.errorResponse != null)
    print("Error Description: ${result.errorResponse.errorDescription}");

  if (result.statusCode != null) print("Status Code: ${result.statusCode}");
}
1
likes
30
pub points
20%
popularity

Publisher

unverified uploader

A Flutter package that helps to get oauth token to use on operations available on API REST of API Cielo eCommerce.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, http

More

Packages that depend on cielo_oauth