Pindo class
A Dart API client for pindo.io. Check www.pindo.io for more info.
Constructors
- Pindo({Dio? dio})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
balance(
{required String token}) → Future< double> - Checks the user's balance
-
forgotPassword(
{required String email}) → Future< void> - Sends the user an email to reset their password.
-
getToken(
{required String username, required String password}) → Future< String> - Get the user's token from their pindo account.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
organization(
{required String token, required String name, required String webHookURL, required int retriesCount}) → Future< String> - Update organization settings. Returns the organization's new url
-
refreshToken(
{required String username, required String password}) → Future< String> - Refresh the user's token returns the newly generated token
-
register(
{required String username, required String email, required String password}) → Future< void> - Creates a new Pindo account Returns the url to the user's profile
-
sendSMS(
{required String token, required String to, required String from, required String text}) → Future< double> - Sends an SMS to a single user retutns the remaining balance after the sms is sent
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited