/// <summary> /// Gets the most recent media of the user mathcing the specified <code>options</code>. /// </summary> /// <param name="options">The search options for the call to the API.</param> /// <returns>Returns an instance of <see cref="SocialHttpResponse"/> representing the response from the Instagram API.</returns> /// <see> /// <cref>https://instagram.com/developer/endpoints/users/#get_users_media_recent</cref> /// </see> public SocialHttpResponse GetRecentMedia(InstagramGetUserRecentMediaOptions options) { if (options == null) { throw new ArgumentNullException("options"); } return(Client.DoHttpGetRequest("https://api.instagram.com/v1/users/" + (options.UserId == 0 ? "self" : options.UserId + "") + "/media/recent", options)); }
/// <summary> /// Gets the most recent media of the user matching the specified <code>options</code>. /// </summary> /// <param name="options">The search options for the call to the API.</param> public InstagramGetUserRecentMediaResponse GetRecentMedia(InstagramGetUserRecentMediaOptions options) { return(InstagramGetUserRecentMediaResponse.ParseResponse(Raw.GetRecentMedia(options))); }