client
This module has the client to connect to MAL API.
Client
An asynchronous client used to interact with the MAL API.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
client_id |
str
|
The MAL Client Id to be used with the requests. |
required |
Source code in aniwrap/client.py
close
async
Close the existing client session.
Warning
You will receive an error in your console if this is not called before the program terminates.
UserClient
An asynchronous client used to interact with the user methods of MAL API.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
access_token |
str
|
The access token that is generated using the MAL oauth flow. |
required |
Note
The access_token
will be unique for each MAL user.
Source code in aniwrap/client.py
close
async
Close the existing client session.
Warning
You will receive an error in your console if this is not called before the program terminates.