Ejemplo n.º 1
0
        public string SendMessage(Credentials credentials, string message)
        {
            var twit = new Twitter();
            twit.TwitterClient = "Unite";
            twit.TwitterClientUrl = "http://github.com/jcbozonier/irontwit/tree/master";
            twit.TwitterClientVersion = "0.1";

            var result = twit.UpdateAsJSON(credentials.UserName, credentials.Password, message);
            return result;
        }
Ejemplo n.º 2
0
        public string GetMessages(Credentials credentials)
        {
            var twit = new Twitter();
            twit.TwitterClient = "Unite";
            twit.TwitterClientUrl = "http://github.com/jcbozonier/irontwit/tree/master";
            twit.TwitterClientVersion = "0.1";

            var result = twit.GetFriendsTimelineAsJSON(credentials.UserName, credentials.Password);
            return result;
        }