I'm attempting to use this api call listed here (I want to get a media object from the instagram url shortcode):
https://instagram.com/developer/endpoints/media/?hl=en#get_media_by_shortcode
I've tried using calls like this (id is the shortcode)
media = instagram_api.media(shortcode=id)
# or
media = instagram_api.media.shortcode(id)
I keep getting errors that either say no parameter found for media id or function has no attribute 'shortcode'