/// <summary> /// Gets the timeline of the user matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options used when making the request to the API.</param> /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the raw response.</returns> /// <see> /// <cref>https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-user_timeline</cref> /// </see> public SocialHttpResponse GetUserTimeline(TwitterGetUserTimelineOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } return(Client.DoHttpGetRequest("https://api.twitter.com/1.1/statuses/user_timeline.json", options)); }
/// <summary> /// Get the raw API response for a user's timeline. /// </summary> /// <param name="options">The options used when making the call to the API.</param> /// <returns>An instance of <see cref="TwitterGetUserTimelineResponse"/> representing the response.</returns> /// <see> /// <cref>https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-user_timeline</cref> /// </see> public TwitterGetUserTimelineResponse GetUserTimeline(TwitterGetUserTimelineOptions options) { return(TwitterGetUserTimelineResponse.ParseResponse(Raw.GetUserTimeline(options))); }