예제 #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;
        }
예제 #2
0
파일: Twitter.cs 프로젝트: mkoby/TwitterNET
 /// <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);
 }
예제 #3
0
파일: Twitter.cs 프로젝트: mkoby/TwitterNET
 /// <summary>
 /// Create a Twitter object with no associated login 
 /// </summary>
 public Twitter()
 {
     _requestHandler = new RequestHandler(String.Empty, String.Empty);
 }