第三方api接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

api.go 434 B

11 months ago
1234567891011121314151617
  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. }