diff --git a/tiktok/resty.go b/tiktok/resty.go index 9e46758..e0ec262 100644 --- a/tiktok/resty.go +++ b/tiktok/resty.go @@ -28,7 +28,7 @@ func (o *tiktok) restyPost(url string, body interface{}) (*resty.Response, error resp, err := o.restClient.R(). SetHeader("Accept", "application/json"). SetHeader("Content-Type", "application/json"). - SetHeader("Auhtorization", "Bearer "+o.accessToken). + SetHeader("Authorization", "Bearer "+o.accessToken). SetBody(body). Post(url) @@ -55,7 +55,7 @@ func (o *tiktok) restyPostWithQueryParams(url string, body interface{}, queryPa resp, err := o.restClient.R(). SetHeader("Accept", "application/json"). SetHeader("Content-Type", "application/json"). - SetHeader("Auhtorization", "Bearer "+o.accessToken). + SetHeader("Authorization", "Bearer "+o.accessToken). SetQueryParams(queryParams). SetBody(body). Post(url) @@ -68,7 +68,7 @@ func (o *tiktok) restyPostWithQueryParams(url string, body interface{}, queryPa func (o *tiktok) restyGet(url string, queryParams map[string]string) (*resty.Response, error) { resp, err := o.restClient.R(). - SetHeader("Auhtorization", "Bearer "+o.accessToken). + SetHeader("Authorization", "Bearer "+o.accessToken). SetQueryParams(queryParams). Get(url) //