Code Monkey home page Code Monkey logo

jikan-auth's Introduction

JikanAuth

JikanAuth - Unofficial MyAnimeList.net PHP AUTH API

stable Average time to resolve an issue Percentage of issues still open stable Discord Server

JikanAuth is a PHP API for MyAnimeList.net. It allows you to login and manage your anime and manga lists. It satisfies MyAnimeList's lack of API.

This library is a sister project initiative of the Jikan API - which covers MyAnimeList entirely for GET/read requests only.

This library is not production ready and may be updated frequently, use at your own risk

Issues

JikanAuth will not be a part of the Jikan REST API.

Right now it's more or less a proof of concept due to limitations from MyAnimeList.

Reasons

  • MyAnimeList will block the IP after multiple failed login attempts.
  • Having a plethora amount of logins through a singular IP will raise suspicion. As you probably know, MyAnimeList has banned a huge number of proxies/VPN IPs.

Possible Solutions

  • Use as a private API for your app
  • Use a pool of proxies that work by injecting your own Guzzle Client
  • Request MyAnimeList to whitelist your IP ๐Ÿค”
  • Use the PoC to come up with a client-side solution

How it works

A short preface; I'm not the first one to come up with this. I've only implemented the idea. There's quite a number of 3rd party apps that have been using this method to manage user lists since MyAnimeList's API went down.

JikanAuth uses MyAnimeList's login for to authenticate the user and uses the session data to perform further requests such as updating the user's list.

The user's list can be updated through MyAnimeList's undocumented internal API which is used via XHR on their website.

Does this mean Jikan can do XYZ too?

Yes, you can read messages, send messages, send friend requests, read notifcations, etc.

But I see no point in implementing these features because I currently don't see this being practical on a larger scale as a PHP library due to the Reasons I mentioned above.

Getting Started

  1. composer require jikan-me/jikan-auth
  2. Documentation

Dependencies

  • Guzzle
  • PHP 7.1+

Features

  • Login with Username/Password
  • Manage Anime/Manga lists
    • Add
    • Edit
    • Delete
  • Dependency Injection

Todo

  • Reuse session by storing it
  • Add possible Exceptions
  • Add possible responses (you don't get any response currently, it simply works)

DISCLAIMER

  • JikanAuth is not affiliated with MyAnimeList.net
  • You are responsible for the usage of this API. Please be respectful towards MyAnimeList's Terms Of Service

jikan-auth's People

Contributors

irfan-dahir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.