Now the new version of Sina Weibo SDK for. NET 2.0/3.5/4.0 supports all versions of the. NET Framework! Sina Weibo SDK for. Net 4.0 version 2 web demo released Sina Weibo SDK for. net

Source: Internet
Author: User
Tags oauth

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.