diff --git a/tiktok/resty.go b/tiktok/resty.go index 9425ede..001ee2e 100644 --- a/tiktok/resty.go +++ b/tiktok/resty.go @@ -27,7 +27,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("Auhtorization", "Bearer "+ o.accessToken ). SetBody(body). Post(url) @@ -39,7 +39,7 @@ func (o *tiktok) restyPost(url string, body interface{}) (*resty.Response, error func (o *tiktok) restyGet(url string, queryParams map[string]string) (*resty.Response, error) { resp, err := o.restClient.R(). - SetHeader("Auhtorization" "Bearer "+ o.accessToken ). + SetHeader("Auhtorization", "Bearer "+ o.accessToken ). SetQueryParams(queryParams). Get(url) //