简体   繁体   English

连接到CJ API

[英]Connecting to CJ API

Im trying to make a REST api work with VB.NET (http://help.cj.com/en/web_services/web_services.htm#Commission_Detail_Service.htm) 我试图使用VB.NET制作REST api(http://help.cj.com/en/web_services/web_services.htm#Commission_Detail_Service.htm)

This is CJ commission's API. 这是CJ委员会的API。

The problem I have is that Im trying to add the service reference https://commission-detail.api.cj.com/v3/commissions but its not working, and when I go straight to that address on the web browser, its asking me for the developer key, which I have, but I dont know how to enter it. 我遇到的问题是我试图添加服务参考https://commission-detail.api.cj.com/v3/commissions但它不起作用,当我直接在网络浏览器上找到该地址时,它要求我是开发人员密钥,我有,但我不知道如何输入它。

Does anyone have a sample code on how to connect to that API? 有没有人有关于如何连接到该API的示例代码?

Thanks! 谢谢!

I guess you don't need it by this time, but still, for those who'll have the similar question and get to this page: you should pass your developer key as the authorization header of your request. 我想你现在不需要它,但是,对于那些有类似问题并进入此页面的人:你应该将您的开发人员密钥作为请求的授权标头传递。 Depending on how you make requests, it could look something like this in VB.NET: 根据您的请求,它可能在VB.NET中看起来像这样:

HttpWebRequest.Headers.Add("authorization", "your_dev_key")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM