From f1a83e9b5cf1931adcdccef9db4586eeab987700 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 17 Feb 2022 21:55:42 +0530 Subject: actually fixed all the errors with broken imports and clients --- user/client.go | 2 +- user/request_handler.go | 2 +- user/user.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'user') diff --git a/user/client.go b/user/client.go index 2cdc79c..8a1105e 100644 --- a/user/client.go +++ b/user/client.go @@ -20,4 +20,4 @@ import ( "github.com/MikunoNaka/MAL2Go/util" ) -type MALUserClient util.DefaultClient +type Client util.DefaultClient diff --git a/user/request_handler.go b/user/request_handler.go index da8c5f7..47a1699 100644 --- a/user/request_handler.go +++ b/user/request_handler.go @@ -23,7 +23,7 @@ import ( ) // Handles HTTP request with your OAuth token as a Header -func (c MALUserClient) requestHandler(endpoint string) string { +func (c Client) requestHandler(endpoint string) string { // generate request req, err := http.NewRequest("GET", endpoint, nil) if err != nil { diff --git a/user/user.go b/user/user.go index 31ac8dc..9c52150 100644 --- a/user/user.go +++ b/user/user.go @@ -23,7 +23,7 @@ import ( const BASE_URL string = "https://api.myanimelist.net/v2/users" // Get info of logged in user -func (c *MALUserClient) GetSelfUserInfo() UserInfo { +func (c Client) GetSelfUserInfo() UserInfo { /* MAL only supports @me for this */ endpoint := BASE_URL + "/@me?fields=anime_statistics" -- cgit v1.2.3