From df54745294fc9539224174e9b32fe23da851ae45 Mon Sep 17 00:00:00 2001 From: Antony Date: Wed, 24 Aug 2022 02:42:41 +0200 Subject: [PATCH] fixes --- .../syncproviders/providers/GithubApi.kt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/syncproviders/providers/GithubApi.kt b/app/src/main/java/com/lagradost/cloudstream3/syncproviders/providers/GithubApi.kt index 86148a27..bea24033 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/syncproviders/providers/GithubApi.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/syncproviders/providers/GithubApi.kt @@ -78,10 +78,18 @@ class GithubApi(index: Int) : InAppAuthAPIManager(index){ .call(); tmpDir.delete() } -private class repos{ + private class repos ( + @JsonProperty("full_name") var repoName: String + ) -} private suspend fun initLogin(githubToken: String): Boolean{ + val repoResponse = app.post("https://api.github.com/user/repos", + headers= mapOf( + "Accept" to "application/vnd.github+json", + "Authorization" to "token $githubToken" + ) + ) + val val response = app.post("https://api.github.com/user/repos", headers= mapOf( "Accept" to "application/vnd.github+json",