예제 #1
0
		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);
		}
예제 #2
0
		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);
		}
예제 #3
0
		private static HttpWebRequest GetWebRequest(
			IAuthenticationContext authenticationContext, RequestParameters requestParameters)
		{
			var requestBuilder = new RequestBuilder(authenticationContext);
			return requestBuilder.GetRequest(requestParameters);
		}