Пример #1
0
        public void HomeTimeLineTest()
        {
            XmlDocument doc = new XmlDocument();
            doc.Load( @"D:\Documents\Visual Studio 2010\F#\TwitterClient\oauthtoken.xml" );
            XmlNode root = doc.SelectSingleNode( "/OAuthTokens" );

            string ckey = root["ConsumerKey"].InnerText;
            string csec = root["ConsumerSecret"].InnerText;
            string akey = root["AccessKey"].InnerText;
            string asec = root["AccessSecret"].InnerText;

            OAuthHandler oauth = new OAuthHandler( ckey, csec, akey, asec );
            Api api = new Api( oauth );

            XmlNodeList result = api.HomeTimeLine();
        }