Struct fractal_api::ClientV1 [] [src]

pub struct ClientV1 {
    // some fields omitted
}

The client struct.

This struct will be in charge of connections to the Fractal Global Credits API.

Methods

impl ClientV1
[src]

Creates a new Fractal Global Credits API client.

Creates a new Fractal Global Credits API client.

Creates a new Fractal Global Credits API development client.

Sets the read timeout for requests.

Sets the write timeout for requests.

Gets a token from the API.

Creates a client

Creates a client with the given name, scopes and request limit per hour. An admin scoped token is required to use this API call.

Registers the user

Resends the email confirmation

Begins a the reset password procecss

Get the user

Gets the logged in users info

Logs the user in

Gets all the transactions since the given transaction

Gets all the pending friend requests for the given user.

Gets all users from the database.

Generates a transaction

Sets the users username

Sets the users phone

Sets the users birthday

Sets the users first and last name

Sets the users email

Sets the users profile picture

Sets the users address

Sets the user password

Creates a pending invitation to connect to the user

Confirms a connection

Confirms the users email

Attempts to confirm the new password reset

Deletes the user

Gets the authenticator qrcode to scan for 2 factor authentication

Authenticates the user with 2FA