aboutsummaryrefslogtreecommitdiff
path: root/mal/mal.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-06-15 12:59:22 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-06-15 12:59:22 +0530
commitab3db8a4ca89293ce0928177e8845d622f13755f (patch)
treee5331856b39b43cfea422f806aa046b0925e92e4 /mal/mal.go
parent5eb7a3cd41826fccdc432d049dd85a31b4b56073 (diff)
added pretty template for TextInput
Diffstat (limited to 'mal/mal.go')
-rw-r--r--mal/mal.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/mal/mal.go b/mal/mal.go
index 491dbb6..c693f40 100644
--- a/mal/mal.go
+++ b/mal/mal.go
@@ -23,11 +23,15 @@ import (
"os"
a "github.com/MikunoNaka/MAL2Go/anime"
+ m "github.com/MikunoNaka/MAL2Go/manga"
ua "github.com/MikunoNaka/MAL2Go/user/anime"
+ um "github.com/MikunoNaka/MAL2Go/user/manga"
)
var animeClient a.Client
+var mangaClient m.Client
var userAnimeClient ua.Client
+var userMangaClient um.Client
func init() {
// TODO: don't load access token from .env
@@ -35,5 +39,7 @@ func init() {
// initialise MAL2Go Client(s)
animeClient.AuthToken = "Bearer " + accessToken
+ mangaClient.AuthToken = "Bearer " + accessToken
userAnimeClient.AuthToken = "Bearer " + accessToken
+ userMangaClient.AuthToken = "Bearer " + accessToken
}