Git Product home page Git Product logo

anidb.api's Introduction

GitHub Actions Workflow Status NuGet Version GitHub Repo stars GitHub Issues or Pull Requests GitHub License


Logo

AniDB.Api

.Net library that provides wrapper for AniDB API!

๐Ÿ“ฅ Getting Started

Install

Download and install library from NuGet Gallery:

dotnet add package AniDb.Api

or install separately nugets for either Http or Udp API:

dotnet add package AniDb.Api.Http
dotnet add package AniDb.Api.Udp

Usage examples

GetAnime

IAniDbHttpApi api = new AniDbHttpApi();

// Pass AniDB anime id.
Response<Anime> anime = await this.api.GetAnime(17709);

GetUserHints

IAniDbHttpApi api = new AniDbHttpApi();

// Pass AniDB username and password.
// This is main password, not the API password specified in the profile.
// Library doesn't store this data.
Response<HintCollection> userHints = await this.api.GetUserHints("MyUsername", "MyPassword");

GetAnimeTitles

IAniDbAnimeTitles animeTitlesDump = new AniDbAnimeTitles();

// Note: Remember to cache results! 
// Best strategy would be to call this method only from wrapper class
// that implements pernament (not in memory) caching.
AnimeTitlesCollection animeTitles = await this.animeTitlesDump.GetAnimeTitles();

Caching

All users of this API should employ heavy local caching. In case of data dumps (Anime titles) requesting the same dataset multiple times on a single day can get you banned. The same goes for Http API request flooding. You should not request more than one page every two seconds.

โ˜‚๏ธ Coverage

Coverage as of right now is:

๐Ÿ“ Roadmap

  • Implement UDP API.
  • Use ISO 639 language codes.
  • Add more comprehensive integration tests that check data mapping/validity
  • Use DateOnly in models when migrating to .Net7 or higher - support for DateOnly conversion to/from XML.
  • Use required keyword instead of null collapse in DTOs when migrating to .Net7 or higher.

โž• Contributing

See Contributing doc.

โš– License

This project is licensed under the GNU General Public License v3.0 (GPL-3.0) - see the LICENSE file for more details.

anidb.api's People

Contributors

vagab0nd avatar dependabot[bot] avatar neyesha avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.