Skip to content

Commit

Permalink
solve resty
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Jul 25, 2024
1 parent 074e5c6 commit d49514a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tiktok/resty.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
//
Expand Down

0 comments on commit d49514a

Please sign in to comment.