From a61813d500519510ee22af521d9eb6f7290d36fd Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 23 Oct 2023 16:31:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tik_tok/task_api.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tik_tok/task_api.go 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 +}