Exemple #1
0
 /// <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 a location with the specified <code>locationId</code>.
 /// </summary>
 /// <param name="locationId">The ID of the location.</param>
 /// <param name="options">The options for the search.</param>
 public SocialHttpResponse GetRecentMedia(int locationId, InstagramLocationRecentMediaOptions options) {
     return Client.DoAuthenticatedGetRequest("https://api.instagram.com/v1/locations/" + locationId + "/media/recent", options);
 }
 /// <summary>
 /// Gets a list of recent media from the specified <code>location</code>.
 /// </summary>
 /// <param name="location">The location.</param>
 /// <param name="options">The options for the call to the API.</param>
 public SocialHttpResponse GetRecentMedia(InstagramLocation location, InstagramLocationRecentMediaOptions options) {
     if (location == null) throw new ArgumentNullException("location");
     return GetRecentMedia(location.Id, options);
 }
Exemple #4
0
 /// <summary>
 /// Get a list of recent media objects from a given location.
 /// </summary>
 /// <param name="locationId">The ID of the location.</param>
 /// <param name="options">The options for the search.</param>
 public SocialHttpResponse GetRecentMedia(long locationId, InstagramLocationRecentMediaOptions options)
 {
     return(Client.DoAuthenticatedGetRequest("https://api.instagram.com/v1/locations/" + locationId + "/media/recent", options));
 }
 /// <summary>
 /// Get a list of recent media objects from a given location.
 /// </summary>
 /// <param name="locationId">The ID of 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 InstagramLocationRecentMediaResponse GetRecentMedia(long locationId, InstagramLocationRecentMediaOptions options)
 {
     return(InstagramLocationRecentMediaResponse.ParseResponse(Raw.GetRecentMedia(locationId, options)));
 }
 /// <summary>
 /// Get a list of recent media objects from a given location.
 /// </summary>
 /// <param name="locationId">The ID of 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 InstagramLocationRecentMediaResponse GetRecentMedia(int locationId, InstagramLocationRecentMediaOptions options) {
     return InstagramLocationRecentMediaResponse.ParseResponse(Raw.GetRecentMedia(locationId, options));
 }