/// <summary> /// Gets information about the Instagram media with the specified <paramref name="shortcode"/>. /// </summary> /// <param name="shortcode">The shortcode of the media (eg. <code>BSTdNc3Bk2B</code>).</param> /// <returns>An instance of <see cref="InstagramGetMediaResponse"/> representing the response from the Instagram API.</returns> public InstagramGetMediaResponse GetMediaFromShortcode(string shortcode) { return(InstagramGetMediaResponse.ParseResponse(Raw.GetMediaFromShortcode(shortcode))); }
/// <summary> /// Gets information about the Instagram media with the specified <paramref name="mediaId"/>. /// </summary> /// <param name="mediaId">The ID of the media (eg <code>1482657170024975745_653220932</code>).</param> /// <see> /// <cref>https://instagram.com/developer/endpoints/media/#get_media</cref> /// </see> /// <returns>An instance of <see cref="InstagramGetMediaResponse"/> representing the response from the Instagram API.</returns> public InstagramGetMediaResponse GetMedia(string mediaId) { return(InstagramGetMediaResponse.ParseResponse(Raw.GetMedia(mediaId))); }