aboutsummaryrefslogtreecommitdiff

MAL2Go

MyAnimeList V2 API wrapper for GoLang

How to use

Documentation is on my website: https://vidhukant.xyz/docs/mal2go/

Package Structure

anime package contains all the functionality for pulling data about anime from the API.

manga package contains all the functionality for pulling data about manga from the API.

user package has the functionality for getting user data and updating information.

user/animelist package has the functionality to update the authenticated user's anime list status, etc.

user/animelist package has the functionality to update the authenticated user's manga list status, etc.

util package has some code used by multiple packages that I think don't belong particularly to one single package

errhandlers package contains the validators and error handlers mainly to be used by MAL2Go.

Authentication

MyAnimeList V2 API uses OAuth to authenticate a user.

Some useful links about authenticating with MyAnimeList: - A Client ID can be generated here. This is needed to create an auth token for use with your program.

  • Official documentation for authenticating with MyAnimeList is here

  • An awesome guide to simplify this process by ZeroCrystal.

  • An easy but not the best (still really good for getting started quickly/testing) way to generate a token is to use my script.

Each package has a Client struct that needs an AuthToken: string among other (optional) values that don't do anything yet.

Licence

Licenced under GNU General Public Licence

GNU GPL License: LICENSE

Copyright (c) 2022 Vidhu Kant Sharma