diff --git a/tik_tok/task_api.go b/tik_tok/task_api.go new file mode 100644 index 0000000..59b1d50 --- /dev/null +++ b/tik_tok/task_api.go @@ -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 TaskApi(method, token string, param string) (string, error) { + url := "https://open.douyin.com/api/match/v1/taskbox/" + 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 +}