/// <summary> /// Get a list of recent media objects from a given location. /// </summary> /// <param name="location">The location.</param> /// <param name="options">The options for the search.</param> public string GetRecentMedia(InstagramLocation location, InstagramLocationSearchOptions options) { if (location == null) { throw new ArgumentNullException("location"); } return(GetRecentMedia(location.Id, options)); }
/// <summary> /// Initializes a new instance with the specified <paramref name="location"/>. /// </summary> /// <param name="location">The location.</param> public InstagramGetLocationRecentMediaOptions(InstagramLocation location) { if (location == null) { throw new ArgumentNullException("location"); } LocationId = location.Id; }
/// <summary> /// Get a list of recent media objects from a given location. /// </summary> /// <param name="location">The location.</param> public InstagramRecentMediaResponse GetRecentMedia(InstagramLocation location) { if (location == null) { throw new ArgumentNullException("location"); } return(GetRecentMedia(location.Id)); }
/// <summary> /// Get a list of recent media objects from a given location. /// </summary> /// <param name="location">The location.</param> /// <param name="options">The options for the search.</param> /// <see cref="http://instagram.com/developer/endpoints/locations/#get_locations_media_recent"/> public SocialHttpResponse GetRecentMedia(InstagramLocation location, InstagramLocationRecentMediaOptions options) { if (location == null) { throw new ArgumentNullException("location"); } return(GetRecentMedia(location.Id, options)); }
/// <summary> /// Gets a list of recent media from the specified <paramref name="location"/>. /// </summary> /// <param name="location">The location.</param> /// <param name="count">The maximum amount of media to be returned.</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(InstagramLocation location, int count) { if (location == null) { throw new ArgumentNullException("location"); } return(GetRecentMedia(new InstagramGetLocationRecentMediaOptions(location.Id, count))); }
/// <summary> /// Get a list of recent media objects from a given location. /// </summary> /// <param name="location">The location.</param> public string GetRecentMedia(InstagramLocation location) { if (location == null) { throw new ArgumentNullException("location"); } // TODO: Add support for MIN_TIMESTAMP parameter // TODO: Add support for MIN_ID parameter // TODO: Add support for MAX_ID parameter // TODO: Add support for MAX_TIMESTAMP parameter return(GetRecentMedia(location.Id)); }
/// <summary> /// Gets a list of recent media from the specified <paramref name="location"/>. /// </summary> /// <param name="location">The location.</param> /// <param name="count">The maximum amount of media to be returned.</param> /// <returns>An instance of <see cref="InstagramGetLocationRecentMediaResponse"/> representing the response from the Instagram API.</returns> public InstagramGetLocationRecentMediaResponse GetRecentMedia(InstagramLocation location, int count) { return(InstagramGetLocationRecentMediaResponse.ParseResponse(Raw.GetRecentMedia(location, count))); }