diff --git a/api/apiuser.go b/api/apiuser.go index a9b7f41..23693f1 100644 --- a/api/apiuser.go +++ b/api/apiuser.go @@ -39,7 +39,7 @@ type UserResponse struct { func User() (*UserResponse, error) { client := &http.Client{} - clientReq, err := getClientReqest(config.Sitename(), API_USER_ME, config.Token()) + clientReq, err := getClientRequest(config.Sitename(), API_USER_ME, config.Token()) if err != nil { fmt.Println("Error generating client", err) } diff --git a/api/ersvc.go b/api/ersvc.go index c271ebd..3dab45f 100644 --- a/api/ersvc.go +++ b/api/ersvc.go @@ -38,7 +38,7 @@ func getAuthRequest(sitename string) (*http.Request, error) { return req, nil } -func getClientReqest(sitename string, endpoint string, token string) (*http.Request, error) { +func getClientRequest(sitename string, endpoint string, token string) (*http.Request, error) { req, err := http.NewRequest("GET", getApiUrl(sitename, endpoint), nil) if err != nil { return nil, err