Skip to content

Very simple library to access twitter from C# using the REST API

Notifications You must be signed in to change notification settings

jmhdez/TinyTwitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyTwitter

Very simple library to access twitter from C# using the REST API. If you are looking for a full-featured library, take a look at Twitterizer or TweetSharp.

How to use TinyTwitter

Just grab the latest version of TinyTwitter.cs and include it in your project. That's all. No binary dependecies are needed.

To use TinyTwitter you need to create and register an application with Twitter to obtain a valid set of OAuth application tokens. More info about this can be found in Twitter's docs.

Using those tokens, you can begin to use TinyTwitter to post and/or read tweets from your account:

var oauth = new OAuthInfo
{
	AccessToken = "YOUR ACCESS TOKEN",
	AccessSecret = "YOUR ACCES SECRET",
	ConsumerKey = "YOUR CONSUMER KEY",
	ConsumerSecret = "YOUR CONSUMER SECRET"
};

var twitter = new TinyTwitter(oauth);

// Update status, i.e, post a new tweet
twitter.UpdateStatus("I'm tweeting from C#");

// Get home timeline tweets
var tweets = twitter.GetHomeTimeline();

foreach (var tweet in tweets)
	Console.WriteLine("{0}: {1}", tweet.UserName, tweet.Text);

Copyright and license

Copyright 2012-2015 Juan M. Hernández.

Code licensed under the [Apache License 2.0] (http://www.apache.org/licenses/LICENSE-2.0) or the [MIT License] (http://opensource.org/licenses/MIT).

About

Very simple library to access twitter from C# using the REST API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •