/// <summary>
 /// Gets a list of recent media of the Instagram 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-api/reference/user/media#get-media</cref>
 /// </see>
 public IHttpResponse GetRecentMedia(InstagramGetRecentMediaOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     return(Client.GetResponse(options));
 }
 /// <summary>
 /// Search for media in a given area. Can return mix of image and video types.
 /// </summary>
 /// <param name="options">The search options.</param>
 /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the response from the Instagram API.</returns>
 /// <see>
 ///     <cref>https://instagram.com/developer/endpoints/media/#get_media_search</cref>
 /// </see>
 public SocialHttpResponse Search(InstagramGetRecentMediaOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException("options");
     }
     return(Client.DoHttpGetRequest("https://api.instagram.com/v1/media/search", options));
 }
 /// <summary>
 /// Search for media in a given area. Can return mix of image and video types.
 /// </summary>
 /// <param name="options">The search options.</param>
 /// <returns>An instance of <see cref="InstagramSearchMediaResponse"/> representing the response from the Instagram API.</returns>
 public InstagramSearchMediaResponse Search(InstagramGetRecentMediaOptions options)
 {
     return(InstagramSearchMediaResponse.ParseResponse(Raw.Search(options)));
 }
Example #4
0
 /// <summary>
 /// Gets a list of recent media of the Instagram 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-api/reference/user/media#get-media</cref>
 /// </see>
 public InstagramMediaListResponse GetRecentMedia(InstagramGetRecentMediaOptions options)
 {
     return(new InstagramMediaListResponse(Raw.GetRecentMedia(options)));
 }