Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeluchu/tioxime
A Kotlin wrapper for TioAnime
https://github.com/jeluchu/tioxime
anime api kotlin tioanime wrapper
Last synced: about 1 month ago
JSON representation
A Kotlin wrapper for TioAnime
- Host: GitHub
- URL: https://github.com/jeluchu/tioxime
- Owner: jeluchu
- Created: 2024-02-19T16:02:45.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-19T16:31:51.000Z (10 months ago)
- Last Synced: 2024-05-01T19:04:47.805Z (8 months ago)
- Topics: anime, api, kotlin, tioanime, wrapper
- Language: Kotlin
- Homepage:
- Size: 139 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![Tioxime Banner](https://raw.githubusercontent.com/jeluchu/tioxime/main/assets/tioxime.png)
[![Discord Server](https://img.shields.io/discord/460491088004907029.svg?style=flat&logo=discord)](https://discord.gg/2DZHfxv9XN) [![](https://jitpack.io/v/jeluchu/tioxime.svg)](https://jitpack.io/#jeluchu/tioxime)Wrapper for [TioAnime Web](https://tioanime.com/) build using Kotlin + Kotlin DSL + Coroutines power 🚀
# Installation
with Gradle
```groovy
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation("com.github.jeluchu:tioxime:1.0.0")
}
```
# Example
```kotlin
fun main() {
val anime = runBlocking { Tioxime.getAnime("shigatsu-wa-kimi-no-uso-sub-espanol") }
println(anime.title) // Prints: Shigatsu wa Kimi no Uso
}
```# Available requests
- **Search:** Using Tioxime, you can call the request, `getSearchAnime(anime: String)` and after passing it the query from which you want to obtain information it will return a list.
- **Anime:** Using Tioxime, you can call the request, `getAnime(anime: String)` and after passing it the query from which you want to obtain information it will return a object.
- **Servers:** Using Tioxime, you can call the request, `getServers(id: String)` and after passing it the query from which you want to obtain information it will return a list with available servers.
- **Last Episodes:** Using Tioxime, you can call the request, `getLastEpisodes()` and after calling this method, the request will return a list of all recent episodes.
- **Broadcast:** Using Tioxime, you can call the request, `getBroadcast()` and after calling this method, the request will return a list of all animes on air.
# Objets
### Search return AnimeSearch object
```kotlin
data class AnimeSearch(
val title: String,
val image: String,
val type: String,
val year: String
)
```### Anime return AnimeInfo object
```kotlin
data class AnimeInfo(
val title: String,
val image: String,
val cover: String,
val synopsis: String,
val state: String,
val type: String,
val genres: List,
val episodesCount: Int,
val episodes: List
)// AnimeEpisode is this object
data class AnimeEpisode(
val id: String,
val number: Int
)
```### Servers return Server object
```kotlin
data class AnimeInfo(
val id: String,
val url: String
)
```### LastEpisodes return Server object
```kotlin
data class Episode(
val title: String,
val episodeNumber: Int,
val type: String,
val image: String,
val url: String,
val id: String
)
```### Broadcast return Broadcast object
```kotlin
data class Broadcast(
val title: String,
val url: String,
val image: String,
val id: String,
val day: String,
val onTime: String
)
```# Release
For latest release or to check the changelogs, please check Release tab.# Contribution
Want to help? I'm very open to contributors so just do it or contact me if you have any question (Discord: jeluchu)