|
|
@@ -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 |
|
|
|
} |