Browse Source

更新

master
huangjiajun 1 year ago
parent
commit
13bedd0018
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      tik_tok/local_api.go

+ 16
- 0
tik_tok/local_api.go View File

@@ -0,0 +1,16 @@
package tik_tok

import (
zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
"fmt"
)

func LocalApi(method, token string, param string) (string, error) {
url := "https://open.douyin.com/api/life/v1/outside_distribution/" + method
header := map[string]string{"Content-Type": "application/json", "access-token": token}

post, err := zhios_third_party_utils.CurlPost(url, param, header)
fmt.Println(string(post))
fmt.Println(err)
return string(post), err
}

Loading…
Cancel
Save