/// <summary> /// Gets a list of recent media from a location matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for the search.</param> /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the raw response from the Instagram API.</returns> /// <see> /// <cref>https://instagram.com/developer/endpoints/locations/#get_locations_media_recent</cref> /// </see> public SocialHttpResponse GetRecentMedia(InstagramGetLocationRecentMediaOptions options) { if (options == null) { throw new ArgumentNullException("options"); } if (options.LocationId == 0) { throw new PropertyNotSetException("options.LocationId"); } return(Client.DoHttpGetRequest("https://api.instagram.com/v1/locations/" + options.LocationId + "/media/recent", options)); }
/// <summary> /// Gets a list of recent media from a location matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for the search.</param> /// <returns>An instance of <see cref="InstagramGetLocationRecentMediaResponse"/> representing the response from the Instagram API.</returns> public InstagramGetLocationRecentMediaResponse GetRecentMedia(InstagramGetLocationRecentMediaOptions options) { return(InstagramGetLocationRecentMediaResponse.ParseResponse(Raw.GetRecentMedia(options))); }