Dave Bush is a .NET programmer and Certified ScrumMaster who is passionate about managing risk as it relates to developing software. When he is not writing or speaking about topics related to Application Lifecycle Risk Management (ALRM), he is an example to his peers as he develops web sites in the ASP.NET environment using industry best practices. Specific topics Dave can address include: • Project management, with an emphasis on Scrum • Test Driven Development (TDD) • Behavioral Driven Development (BDD) • Unit testing and Integration testing using NUnit, Jasmine and SpecFlow • Web Application testing using Selenium • Continuous Integration • Extreme programming (XP) • Coding best practices • Architecture • Code Reviews Dave has "an insatiable curiosity and is always learning." He has been called "the miracle worker" and "hard to replace" by clients he has worked for recently. Contact Dave via LinkedIn (http://www.linkedin.com/in/davembush/) to find out more about how he can help your organization reduce software development risk Dave is a DZone MVB and is not an employee of DZone and has posted 55 posts at DZone. You can read more from them at their website. View Full User Profile

Twitter from ASP.NET

05.14.2009
| 10367 views |
  • submit to reddit

Got this question yesterday and since it looked interesting to me I decided to dig into it.

Any chance we can get a simple tutorial on using Twitter frame work in asp.net
Grabbing the stuff and posting to a site etc.

We will have to go at this in steps but I think this is something we can deal with easily.  Besides, I’m using twitter myself and having this code might just be useful.

While we could roll our own library, there is really no need to.  Several libraries have already been written.  Not that it’s all that hard, we’re just talking some HTTP request.

Here are some you might want to try:

For our samples we will be using Twitterizer because when I asked, that’s what the guy who asked the question is trying to use.

The first thing you’ll want to do is go to the twitterizer link above and download the Twitterizer.DLL

Next, you’ll want to create an asp.net web project and add a reference to the twitterizer.DLL

To make sure everything is working correctly, we are going to go into the codebehind and hard code the following:

  • Log into the account
  • Post a message

 

protected void Page_Load(object sender, EventArgs e)
{
Twitterizer.Framework.Twitter twit =
new Twitterizer.Framework.Twitter
("Dave_Bush", "password");
twit.Status.Update("Test message from " +
"twitterizer. See the code in " +
"tomorrow's post.");
}

Obviously, I’m not going to show you my password in the code.  But if you go look at my twitter messages, you WILL see that message.

Next post about twitter, we’ll submit a message from a web form.

 

References
Published at DZone with permission of Dave Bush, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

michal addon replied on Tue, 2009/06/16 - 12:12pm

Lets start from beginning. I have started earn $$ with sports betting about 3 years ago. Firstly I was very very bed thinking about this kind of job. Lots of people said me that sports btting is just gambling and nothing more. That I have started read a lot of betting and bookmakers firms, bonuses ect. First what I found what very interested me was betfair and Betfair trading system it is nothing but exchange bets with other members of this system. It is amazing option earn lots of money. One more think what I love in betfair is great bonus with Sports betting. Firstly when You wanna start betting You have to choose of the betting system and next find good site with livescore. When You have more information about sport betting You could think about change Your bookmaker to something new like bwin or bet365. Last think what I wanna tell You is Good LUCK, read and learn as much as You can and finaly You got You succes with bookies.Best regards !!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.