Create Client IDs (#804)

* Create Client IDs

* Cleanup imports
This commit is contained in:
Mitchell Syer
2024-01-07 15:36:23 -05:00
committed by GitHub
parent 5a178ada74
commit c70c860a82
5 changed files with 2 additions and 12 deletions

View File

@@ -20,7 +20,6 @@ import suwayomi.tachidesk.manga.controller.DownloadController
import suwayomi.tachidesk.manga.controller.ExtensionController
import suwayomi.tachidesk.manga.controller.MangaController
import suwayomi.tachidesk.manga.controller.SourceController
import suwayomi.tachidesk.manga.controller.TrackController
import suwayomi.tachidesk.manga.controller.UpdateController
object MangaAPI {

View File

@@ -380,8 +380,7 @@ class AnilistApi(val client: OkHttpClient, interceptor: AnilistInterceptor) {
}
companion object {
// TODO: need to replace it with official account, and set callback url to suwayomi://oauth/anilist
private const val CLIENT_ID = "14929"
private const val CLIENT_ID = "16186"
private const val API_URL = "https://graphql.anilist.co/"
private const val BASE_URL = "https://anilist.co/api/v2/"
private const val BASE_MANGA_URL = "https://anilist.co/manga/"

View File

@@ -290,8 +290,7 @@ class MyAnimeListApi(private val client: OkHttpClient, interceptor: MyAnimeListI
}
companion object {
// TODO: need to replace it with official account, and set callback url to suwayomi://oauth/myanimelist
private const val CLIENT_ID = "d9f6f745798cc5b0895e6a274e4b530c"
private const val CLIENT_ID = "3fda277931a4f9bc01fa4a715ce8b91d"
private const val BASE_OAUTH_URL = "https://myanimelist.net/v1/oauth2"
private const val BASE_API_URL = "https://api.myanimelist.net/v2"