mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fixes
This commit is contained in:
parent
6ab90504f4
commit
df54745294
1 changed files with 10 additions and 2 deletions
|
@ -78,10 +78,18 @@ class GithubApi(index: Int) : InAppAuthAPIManager(index){
|
||||||
.call();
|
.call();
|
||||||
tmpDir.delete()
|
tmpDir.delete()
|
||||||
}
|
}
|
||||||
private class repos{
|
private class repos (
|
||||||
|
@JsonProperty("full_name") var repoName: String
|
||||||
|
)
|
||||||
|
|
||||||
}
|
|
||||||
private suspend fun initLogin(githubToken: String): Boolean{
|
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",
|
val response = app.post("https://api.github.com/user/repos",
|
||||||
headers= mapOf(
|
headers= mapOf(
|
||||||
"Accept" to "application/vnd.github+json",
|
"Accept" to "application/vnd.github+json",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue