Esempio n. 1
0
        public string MakeAPIRequest(RequestHandler requestHandler, string strAPIUrl)
        {
            string Output = String.Empty;

            try
            {
                Output = GetTwitterResponse(CreateNewTwitterRequest(strAPIUrl));
            }
            catch (TwitterNETWebException twitwebex)
            {
                throw twitwebex;
            }
            catch (WebException webex)
            {
                throw new TwitterNETWebException(webex.Message, webex);
            }
            catch(Exception ex)
            {
                throw new TwitterNetException(ex.Message, ex);
            }

            return Output;
        }
Esempio n. 2
0
 /// <summary>
 /// Creates a new Twitter object with an associated login 
 /// </summary>
 /// <param name="UserName">
 /// The username of the user
 /// </param>
 /// <param name="Password">
 /// The password of the user
 /// </param>
 public Twitter(string UserName, string Password)
 {
     _requestHandler = new RequestHandler(UserName, Password);
 }
Esempio n. 3
0
 /// <summary>
 /// Create a Twitter object with no associated login 
 /// </summary>
 public Twitter()
 {
     _requestHandler = new RequestHandler(String.Empty, String.Empty);
 }