diff options
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" |