c# - Windows Mobile 6 and twitter -


I am trying to apply Twitter in a mobile game that I am developing and using available libraries I am having difficulty in Someone told me how I can use a library like ntwitter.net compact framework 3.5 and windows mobile 6 thanks to professional SDK thanks in advance for any help

Twitter can be controlled by ordinary authorized web requests To do this, you can use System.Net.HttpWebRequest from the .NET Framework.

The examples below show how the status can be posted on Twitter:

  Public Zero SubmitUserStatus (string username, string password, string tweet) {/ / Username / password string user = convert. ToBase64String (System.txt.Encoding.UTF8.GetBytes (Username + ":" + password); // Specify what status byte [] bytes = System Want to upload as Text.Encoding.ASCII.GetBytes ("status =" + Tweet) // update page with HttpWebRequest request = (HttpWebRequest) WebRequest.Create ("http://twitter.com/statuses/update.xml"); // Set the method to request method = "Post ";. Request.ServicePoint.Expect100Continue = false; // Set authorization level request. Add header (" authorization "," basic "+ user); Request.ContentType =" application / x-www-form-urlencoded "; / Set length / content request content length = bytes lang; // stream stream reqstream = request.GetRequestStream () set up; // stream reqstream.write (bytes, 0, bytes. Length); // stop stream reqstream Close (); }  

Source:

In addition, I would recommend looking for this page for ready libraries:


Comments