public Twitter(string secret, string token) { _authconfig = new OAuthConfiguration() { ConsumerToken = token, ConsumerSecret = secret, AuthUrl = "https://api.twitter.com/oauth2/token" }; _twitConfig = new TwitterConfiguration() { ScreenName = "RobAllen_III", //Count = "4" }; }
public static string GetTwitterFeed() { var oAuth = new OAuthConfiguration() { ConsumerToken = "GPdZTjmPRVXP2cgYgjMQ", ConsumerSecret = "LDh41edDBODdRXrvfAjaK5niYGjiaLilaSPDPYOH6LI" }; var twitconfig = new TwitterConfiguration() { ScreenName = "freshupdates" }; var oAuthTwitterWrapper = new OAuthTwitterWrapper.OAuthTwitterWrapper(oAuth,twitconfig); return oAuthTwitterWrapper.GetMyTimeline(); }
static void Main(string[] args) { var oAuth = new OAuthConfiguration() { ConsumerToken = "GPdZTjmPRVXP2cgYgjMQ", ConsumerSecret = "LDh41edDBODdRXrvfAjaK5niYGjiaLilaSPDPYOH6LI", AuthUrl = "https://api.twitter.com/oauth2/token" }; var twitconfig = new TwitterConfiguration() { ScreenName = "freshupdates" }; var oAuthTwitterWrapper = new OAuthTwitterWrapper.OAuthTwitterWrapper(oAuth,twitconfig); Console.Write("**** Time Line *****\n"); Console.Write(oAuthTwitterWrapper.GetMyTimeline() + "\n\n"); Console.Write("**** Search *****\n"); Console.Write(oAuthTwitterWrapper.GetSearch() + "\n\n"); Console.ReadLine(); }