diff options
author | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-02-17 21:55:42 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-02-17 21:55:42 +0530 |
commit | f1a83e9b5cf1931adcdccef9db4586eeab987700 (patch) | |
tree | dd2f0ea29cfa0d585427a403a5be32a8ff4d4272 /user | |
parent | 7a910534c8d1e82420ef763b514f2763bda63e65 (diff) |
actually fixed all the errors with broken imports and clients
Diffstat (limited to 'user')
-rw-r--r-- | user/client.go | 2 | ||||
-rw-r--r-- | user/request_handler.go | 2 | ||||
-rw-r--r-- | user/user.go | 2 |
3 files changed, 3 insertions, 3 deletions
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" |