/// <summary> /// Gets information about the user matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for the request to the API.</param> /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns> /// <exception cref="ArgumentNullException">If <paramref name="options"/> is <c>null</c>.</exception> /// <see> /// <cref>https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-show</cref> /// </see> public IHttpResponse GetUser(TwitterGetUserOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } return(Client.DoHttpGetRequest("https://api.twitter.com/1.1/users/show.json", options)); }
/// <summary> /// Gets information about the user matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for the request to the API.</param> /// <returns>An instance of <see cref="TwitterGetUserResponse"/> representing the response.</returns> public TwitterGetUserResponse GetUser(TwitterGetUserOptions options) { return(TwitterGetUserResponse.ParseResponse(Raw.GetUser(options))); }