以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  问个接口的问题  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=125341)

--  作者:huangxueyao
--  发布时间:2018/9/26 16:30:00
--  问个接口的问题
下面这个是对方的接口文档,
问下应该怎么写?
是用HttpRequest+Json来写么?
能不能给个简单的示例,谢谢。

接口地址http://host:port/pospal-api2/openapi/v1/productOpenApi/queryProductByBarcode
请求头
  • User-Agent: openApi
  • Content-Type: application/json; charset=utf-8
  • accept-encoding: gzip,deflate
  • time-stamp: 1437528688233
  • data-signature: BF706E6AC693BA3B1BABD32E6713431D
  • 请求方式POST
    请求体
  • {
  • "appId": "abcdefghijklmn",
  • "barcode":"1001" {
  • }
  • 参数名是否必须类型说明
    appIdStringPospal配置的访问凭证
    barcodeString商品条码

    --  作者:有点甜
    --  发布时间:2018/9/26 16:38:00
    --  

    类似参考

     

    http://www.foxtable.com/mobilehelp/scr/0183.htm

     

    http://www.foxtable.com/mobilehelp/scr/0167.htm

     

    http://www.foxtable.com/mobilehelp/scr/0163.htm

     

    [此贴子已经被作者于2018/9/26 16:37:47编辑过]