private static HttpWebRequest GetUpdateStatusRequest(IAuthenticationContext authenticationContext) { var requestBuilder = new RequestBuilder(authenticationContext); RequestParameters requestParameters = new UpdateStatusRequestParameters(authenticationContext, $"Testing Twitter API - {DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss tt")}"); return requestBuilder.GetRequest(requestParameters); }
private static HttpWebRequest GetTimelineRequest(IAuthenticationContext authenticationContext, string screenName) { var requestBuilder = new RequestBuilder(authenticationContext); var requestParameters = new TimelineRequestParameters(authenticationContext) { ScreenName = screenName, Count = "10", }; return requestBuilder.GetRequest(requestParameters); }
private static HttpWebRequest GetWebRequest( IAuthenticationContext authenticationContext, RequestParameters requestParameters) { var requestBuilder = new RequestBuilder(authenticationContext); return requestBuilder.GetRequest(requestParameters); }