/// <summary> /// Gets information about the user matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>Returns an instance of <code>SocialHttpResponse</code> representing the response.</returns> public PinterestGetUserResponse GetUser(PinterestGetUserOptions options) { if (options == null) { throw new ArgumentNullException("options"); } return(PinterestGetUserResponse.ParseResponse(Raw.GetUser(options))); }
/// <summary> /// Gets information about the user matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the raw response.</returns> public SocialHttpResponse GetUser(PinterestGetUserOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } if (String.IsNullOrWhiteSpace(options.Identifier)) { throw new PropertyNotSetException(nameof(options.Identifier)); } return(Client.DoHttpGetRequest($"/v1/users/{options.Identifier}/", options)); }
/// <summary> /// Gets information about the user matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>An instance of <see cref="PinterestGetUserResponse"/> representing the response.</returns> public PinterestGetUserResponse GetUser(PinterestGetUserOptions options) { return(PinterestGetUserResponse.ParseResponse(Raw.GetUser(options))); }