Mangadex

This is documentation for the Mangadex module.

Directory

Sub-modules

Fetchable/Resources

Other classes

Fetchable/Resources

These refer to the resources that live on Mangadex, or general “namespace”-like concepts on which one can fetch information.

Mangadex::Artist

See {Mangadex::Author}

This is a sub-class of Mangadex::Author. It has the same attributes as an author.

Mangadex::Auth

All things authentication.

login

Mangadex::Auth.login(username, password)

Login with your username and password. Upon successful login, the user will be available in a context from Mangadex.context.user. This variable can be used anywhere in your application. More info here.

check_token

Mangadex::Auth.check_token

Check the status of your token, whether you’re authenticated or not.

logout

Mangadex::Auth.logout

Logs out the current user. Sets Mangadex::Api::Content.user to nil.

refresh_token

Mangadex::Auth.refresh_token

Manually cause a token refresh.

Please note that simply calling Mangadex::Api::Content.user ensures that the token is valid. More info here.