when i run this code i get this error:
Traceback (most recent call last):
File "C:\Users\Me\Desktop\Instagram-API-python-master\examples\direct_share.py", line 12, in <module>
InstagramAPI.direct_share(mediaId, recipients, text='aquest es es darrer')
File "C:\Users\Me\AppData\Local\Programs\Python\Python37\lib\site-packages\InstagramAPI\InstagramAPI.py", line 389, in direct_share
if not isinstance(position, list):
NameError: name 'position' is not defined
please can someone help me!
What I have tried:
from InstagramAPI import InstagramAPI
InstagramAPI = InstagramAPI("myusername", "mypassword")
InstagramAPI.login() # login
mediaId = '1469246128528859780_1520706701'
recipients = ["myotherusername"]
InstagramAPI.direct_share(mediaId, recipients, text='hello')