For some reason, getUserIDfromUsername fails when the calls are coming from AWS EC2 (Insta sends something else that doesn't contain the userID)
I have a solution in mind that I'll push a bit later, but for now here's the code to pass optionally userID to the constructor and avoid calling getUserIDfromUsername in publish. That way users can still run the API if they know their userIDs.
For some reason,
getUserIDfromUsername
fails when the calls are coming from AWS EC2 (Insta sends something else that doesn't contain theuserID
)I have a solution in mind that I'll push a bit later, but for now here's the code to pass optionally
userID
to the constructor and avoid callinggetUserIDfromUsername
inpublish
. That way users can still run the API if they know their userIDs.