抖音二维码
This commit is contained in:
@@ -14,8 +14,6 @@ import (
|
||||
func (a *API) Sign(paramsMap map[string]interface{}) string {
|
||||
var paramsArr []string
|
||||
for k, v := range paramsMap {
|
||||
fmt.Println(k)
|
||||
fmt.Println(v)
|
||||
if k == "other_settle_params" || k == "app_id" || k == "sign" || k == "thirdparty_id " {
|
||||
continue
|
||||
}
|
||||
@@ -63,7 +61,7 @@ func (a *API) GetTiktokToken() error {
|
||||
tokenReq["appid"] = a.GetAppID()
|
||||
tokenReq["secret"] = a.GetSecret()
|
||||
tokenReq["grant_type"] = "client_credential"
|
||||
result, err := a.AccessAPI2("https://developer.toutiao.com/api/apps/v2/token", tokenReq)
|
||||
result, err := a.AccessAPI2(GetTiktokToken, tokenReq)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user