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.

cielo_oauth #

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

Usage #

These operations must be performed using its specific key (Client Id and Client Secret) in the respective environment endpoints.

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
0%
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