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

18 行
434 B

  1. package jd
  2. func init() {
  3. JDAppKey = "444ab671c4d095122916453d09af27fc"
  4. JDAppSecret = "aef3c2745cc44194816d0c89c65b3847"
  5. JDVersion = "1.0"
  6. JDRouter = "https://router.jd.com/api"
  7. // taoke.JDRouter = "https://api.jd.com/routerjson"
  8. }
  9. func send(method string, args map[string]interface{}) ([]byte, error) {
  10. result, err := Execute(method, Arg{"goodsReq": args})
  11. if err != nil {
  12. return nil, err
  13. }
  14. return result.MarshalJSON()
  15. }