Taobao Open Platform official environmental data acquisition (a)

Taobao open C # example after download platform, an execution, really easy to use, I'm excited, but I need a real environment, the example given is a data testing environment, which requires you to apply an application of

A Application Application
Application Process we see tips given on Taobao it:


Apply to become a developer: http: //wiki.open.taobao.com/index.php/ apply for a new application
to apply for a new application: http: //wiki.open.taobao.com/index.php/ apply to become a developer

When that is done, it should be how to use, and this is the key

Now you have a hand and a KEY SECRET, equivalent to the account and password
Now we need to get the authorization code and SessionKey
obtain an authorization code address: http://auth.open.taobao.com/?appkey={appkey }
get SessionKey container address: http://container.open.taobao.com/container?authcode = {} authorization code
acquisition SessionKey reference: http: //wiki.open.taobao.com/index.php/ test environment client application acquires sessionkey
well, SessionKey get

Second ready to develop
everything is ready, only development
I use C # explanation
after the code sample download, we need to change a few places, we can develop in a real environment test the
String sessionKey = "①";
TopXmlRestClient topClient = new new TopXmlRestClient ( " http://gw.api.taobao.com/router/rest ", "②", "③");
①: sessionKey made above
②: AppKey
③: appsecret
by this topClient we think we can call with the function of
cases: ResponseList <TaobaokeItem> rsp = topClient.GetTaobaokeItems (req);
this function does not need sessionkey of
course, when the call may report a permissions error is not enough, this time you need to improve your use of the authority

Reproduced in: https: //www.cnblogs.com/daretodream/archive/2010/03/19/1689886.html

Guess you like

Origin blog.csdn.net/weixin_34290352/article/details/93324167