From d49514ae5cf6fb99593a6c59db22e7a52dd5c841 Mon Sep 17 00:00:00 2001 From: Allan Nava Date: Thu, 25 Jul 2024 22:40:06 +0200 Subject: [PATCH] solve resty --- tiktok/resty.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) //