Skip to content

Commit

Permalink
solve dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
allan committed Jul 29, 2024
1 parent 35067a4 commit 66d3351
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tiktok/oauth2.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
package tiktok

import "golang.org/x/oauth2"
import (
"encoding/json"
"fmt"

"golang.org/x/oauth2"
)

// Endpoint is TikTok's OAuth 2.0 endpoint.
var Endpoint = oauth2.Endpoint{
Expand All @@ -20,7 +25,7 @@ curl --location --request POST 'https://open.tiktokapis.com/v2/oauth/token/' \
--data-urlencode 'client_secret=CLIENT_SECRET' \
--data-urlencode 'grant_type=client_credentials'
*/
func (o *tiktok) GetClientAccessTokenManagement() (*AccessTokenManagement, error) {
func (o *tiktok) GetClientAccessTokenManagement() (*AccessTokenManagement, error) {
data := map[string]string{}
data["client_key"] = o.clientKey
data["client_secret"] = o.clientSecret
Expand All @@ -41,6 +46,3 @@ func (o *tiktok) GetClientAccessTokenManagement() (*AccessTokenManagement, erro
o.debugPrint(obj)
return &obj, nil
}



0 comments on commit 66d3351

Please sign in to comment.