貌似是可以的。
1、下载 官方版.net sdk
2、外部引用 TopSdk.dll
3、说明书中 代码示例
? .NET版本
n 不需要登录(sessionKey)的API调用
ITopClient client = new DefaultTopClient("url", "appkey", "appsecret");
UserGetRequest req = new UserGetRequest();
req.Fields = "user_id,nick,created,buyer_credit,type,sex";
req.Nick = "helloworld";
UserGetResponse rsp = client.Execute(req);
if (rsp.IsError)
{
Console.WriteLine(rsp.Body);
}
转成vb.net 的代码为:
以下内容为程序代码:
1 Dim url,appkey,appsecret As String
2 url="http://gw.api.tbsandbox.com/router/rest" '沙箱环境调用地址 正式环境:http://gw.api.taobao.com/router/rest
3 appkey="test" '淘宝开放平台颁发的唯一标识一个应用的ID号 appkey:test
4 appsecret ="test" '应用密钥,不可对外公开,商家需注意保密 appSecrect:test
5
6 Dim client As Top.api.ITopClient = new Top.api.DefaultTopClient(url, appkey, appsecret ) '实例化ITopClient类
7
8 Dim req As Top.api.Request.UserGetRequest = New Top.api.Request.UserGetRequest '实例化具体API对应的Request类
9 req.Fields = "user_id,nick,created,buyer_credit,type,sex"
10 req.Nick = "sandbox_c_1"
11 Dim rsp As Top.api.Response.UserGetResponse = client.Execute(req) '执行API请求并将该类转换为response对象
12 output.show(rsp.Body)
13
此主题相关图片如下:qq截图未命名asdfaaaaaaaaa.png