第三方api接口
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

21 行
583 B

  1. package playlet_bihai
  2. import (
  3. zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
  4. "fmt"
  5. )
  6. func SendPost(method string, token string, param map[string]string) (string, error) {
  7. url := "https://distributionapi.qinronmedia.com/" + method
  8. header := map[string]string{}
  9. if token != "" {
  10. header = map[string]string{
  11. "Authorization": "Bearer " + token,
  12. }
  13. }
  14. get, err := zhios_third_party_utils.CurlPost(url, zhios_third_party_utils.SerializeStr(param), header)
  15. fmt.Println(string(get))
  16. fmt.Println(err)
  17. return string(get), err
  18. }