Closed DavidRoca closed 7 years ago
Can you provide a snippet showing how you try to use this module?
You cannot use await
outside of a function. It must be in the scope of an async
function. In this case, your best chance is to replace
const data = await instagram.get('users/self');
console.log(data);
with
instagram.get('users/self').then(data => {
console.log(data);
}
Hi, I am trying to use node-instagram but I am getting the error "await is a reserved word" with this in my code. If I remove "await" I'm getting a 400 code error (myId and myToken are the id and token from my instagram). Am I doing something wrong ? Thanks.