Struct fractal_api::v1::Client [] [src]

pub struct Client {
    // some fields omitted
}

The client struct.

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

Methods

impl Client
[src]

Client creation and modification.

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.

impl Client
[src]

OAuth methods for clients.

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.

impl Client
[src]

Public methods for the client.

These are the public methods for getting a token, creating and logging in users, and confirming their information.

Registers the user

Logs the user in

Confirms the users email

Begins a the reset password procecss

Attempts to confirm the new password reset

impl Client
[src]

User methods for the client.

This are the user getters, setters and creators for the client.

Resends the email confirmation

Get the user

Gets the logged in users info

Gets all users.

Deletes the given user.

Generates a new authenticator code, and returns the URL.

Authenticates the user with 2FA

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 to the given URL

Sets the users address

Sets the user password

Searches users doing a random search with the given string. It will try to find the string in names, emails etc.

impl Client
[src]

Methods for working with friend requests.

Creates a pending invitation to connect to the user

Confirms a connection

Gets all the pending friend requests for the given user.

Returns the given users friends

impl Client
[src]

Methods for working with transactions.

Gets the given transaction, if authorized.

Generates a new transaction. Returns the code of the transaction

Gets all the transactions since the given transaction