From 7a910534c8d1e82420ef763b514f2763bda63e65 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 17 Feb 2022 21:52:25 +0530 Subject: updated the client in user and user/anime packages --- user/anime/animelist.go | 4 ++-- user/anime/animelist.structs.go | 2 +- user/anime/client.go | 8 ++------ user/anime/update_animelist.go | 2 +- 4 files changed, 6 insertions(+), 10 deletions(-) (limited to 'user/anime') diff --git a/user/anime/animelist.go b/user/anime/animelist.go index bbc7d7a..01e0a0e 100644 --- a/user/anime/animelist.go +++ b/user/anime/animelist.go @@ -21,8 +21,8 @@ import ( "strconv" "fmt" "errors" - a "github.com/MikunoNaka/mal2go/anime" - e "github.com/MikunoNaka/mal2go/errhandlers" + a "github.com/MikunoNaka/MAL2Go/anime" + e "github.com/MikunoNaka/MAL2Go/errhandlers" ) const BASE_URL string = "https://api.myanimelist.net/v2" diff --git a/user/anime/animelist.structs.go b/user/anime/animelist.structs.go index cee47d2..80eb01a 100644 --- a/user/anime/animelist.structs.go +++ b/user/anime/animelist.structs.go @@ -17,7 +17,7 @@ package anime import ( - "github.com/MikunoNaka/mal2go/anime" + "github.com/MikunoNaka/MAL2Go/anime" ) type AnimeListRaw struct { diff --git a/user/anime/client.go b/user/anime/client.go index eeba194..e857df2 100644 --- a/user/anime/client.go +++ b/user/anime/client.go @@ -17,11 +17,7 @@ package anime import ( - "net/http" + "github.com/MikunoNaka/MAL2Go/util" ) -// MyAnimeList Client for mal2go/user/anime package -type Client struct { - AuthToken, RefreshToken string - HttpClient http.Client -} +type Client util.DefaultClient diff --git a/user/anime/update_animelist.go b/user/anime/update_animelist.go index 5a6883c..5f6025a 100644 --- a/user/anime/update_animelist.go +++ b/user/anime/update_animelist.go @@ -16,7 +16,7 @@ package anime import ( - e "github.com/MikunoNaka/mal2go/errhandlers" + e "github.com/MikunoNaka/MAL2Go/errhandlers" "errors" "fmt" "net/url" -- cgit v1.2.3