/// <summary> /// Gets recent media of 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> /// <see> /// <cref>https://developers.facebook.com/docs/instagram-basic-display-api/reference/user/media</cref> /// </see> public IHttpResponse GetMedia(InstagramGetUserMediaOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } return(Client.GetResponse(options)); }
/// <summary> /// Gets recent media of 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="InstagramMediaListResponse"/> representing the response.</returns> /// <see> /// <cref>https://developers.facebook.com/docs/instagram-basic-display-api/reference/user/media</cref> /// </see> public InstagramMediaListResponse GetMedia(InstagramGetUserMediaOptions options) { return(new InstagramMediaListResponse(Raw.GetMedia(options))); }