以文本方式查看主题 - Foxtable(狐表) (http://www.foxtable.com/bbs/index.asp) -- 专家坐堂 (http://www.foxtable.com/bbs/list.asp?boardid=2) ---- [求助]这个接口怎么写? (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=175576) |
-- 作者:zto001 -- 发布时间:2022/3/10 11:38:00 -- [求助]这个接口怎么写? https://open.zto.com/#/interface?resourceGroup=30&apiName=zto.innovate.structureNamePhoneAddress 这个接口怎么写?我用之前的方法写不了 Dim properties As new zopsdk.ZopProperties("7df2ce25e6541781dbac2dffcb28227d","d052ff69bb788e7c354a6") Dim client As new zopsdk.ZopClient(properties) Dim request As new zopsdk.ZopRequest() request.url = "https://japi.zto.com/zto.innovate.structureNamePhoneAddress" request.addParam("company_id", "7df2ce25e6541781dbac2dffcb28227d") request.addParam("msg_type", "availableCounter") request.addParam("address","张三 13812345678 上海市青浦区华新华志路1685号") Dim str = client.execute(request) MessageBox.Show(str) |
-- 作者:有点蓝 -- 发布时间:2022/3/10 11:52:00 -- 咨询接口方,sdk是否支持.net4.0 |
-- 作者:zto001 -- 发布时间:2022/3/12 1:48:00 -- 可以用 |
-- 作者:有点蓝 -- 发布时间:2022/3/12 8:45:00 -- 如果支持.net4.0,下载sdk,应该有c#的例子,照着用即可 |
-- 作者:zto001 -- 发布时间:2022/3/16 22:31:00 -- ZopClient client = new ZopClient("{app}", "{sec}"); ZopPublicRequest request = new ZopPublicRequest(); request.setBody("{\\"address\\":\\"张三 13812345678 上海市青浦区华新华志路1685号\\"}"); request.setUrl("https://japi-test.zto.com/zto.innovate.structureNamePhoneAddress"); request.setBase64({base64}); request.setEncryptionType({encryptionType}); request.setTimestamp({timestamp}); System.out.println(client.execute(request)); 上面这个是Java的代码 Java Curl Php
|
-- 作者:有点蓝 -- 发布时间:2022/3/17 8:49:00 -- 看c#的代码,不要看java的代码 |