aboutsummaryrefslogtreecommitdiff
path: root/mal/mal.go
diff options
context:
space:
mode:
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
}