Thank you for your support.
Since many friends in the QQ Group recently proposed to support the SDK. net2.0/3.5 and vs2008 requests, so I specifically published a request for vs2008 and based on the principle of serving the society. the SDK version of net2.0/3.5.
Download: http://weibosdk.codeplex.com/releases/view/89040
The authorization method and interface call method of. net4.0 are the same. The only difference is that the returned result is changed from dynamic to the corresponding entity class.
In subsequent updates, the original SDK will support both dynamic and object classes ~
The following is a simple example of this SDK version.
Using System; Using System. Collections. Generic; Using System. LINQ; Using System. text; Using Netdimension. Weibo; Using Netdimension. Weibo. entities; Namespace Testclassicalsdkconsole { Class Program { Static Void Main ( String [] ARGs ){ // Sina Weibo SDK for. NET 2.0/3.5/4.0 // Previous versions specifically for. net4.0 dynamic type features will support returning dynamic and entity classes in future release Oauth = New Oauth ( " Appkey " , " Appsecret " ); VaR Result = oauth. clientlogin ( " <Account> " , " <Password> " , " <Bound callback address> " ); // Download the demo provided above for standard authorization and logon processProgramView.
If (Result ){ Try { VaR Sina = New Client (oauth ); // Netdimension. Weibo. Entities. ratelimitstatus Limit = sina. API. Account. ratelimitstatus (); VaR Limit = sina. API. Account. ratelimitstatus (); // Compared with dynamic, this version returns the object type. Console. writeline ( " ==================== " ); Console. writeline ( " Iplimit: {0} " , Limit. iplimit); console. writeline ( " Remainingiphits: {0} " , Limit. remainingiphits); console. writeline ( " Remaininguserhits: {0} " , Limit. remaininguserhits); console. writeline ( " Resettime: {0} " , Limit. resettime); console. writeline ( " Userlimit: {0} " , Limit. userlimit ); // Publish a microblog VaR Status = sina. API. statuses. Update ( String . Format ( " This test microblog was posted on {0} from Sina Weibo SDK for. NET 2.0/3.5/4.0, developed and produced by Lin xuanchen, Yunnan Channel Technology Department of xinlang net. You are welcome to download and try it out. : Http://weibosdk.codeplex.com " , Datetime. Now. tostring ())); // The returned status type is netdimension. Weibo. Entities. Status. entity. // Set a breakpoint here and check the status. Console. writeline ( " ======= Weibo result ======= " ); Console. writeline ( " ID: {0} " , Status. ID); console. writeline ( " Mid: {0} " , Status. Mid );} Catch (Weiboexception ex) {console. writeline (ex. Message) ;}} console. readkey ();}}}
If you have any questions, please join QQ Group 241088256 for discussion. Thank you for your support!
Previous releases
Sina Weibo SDK for. Net 4.0 version 2 web demo released
Sina Weibo SDK for. Net 4.0 Second Edition winform demo released
Sina Weibo SDK for. Net 4.0 version 2 officially released
Project address
Http://weibosdk.codeplex.com/