From 8f8bbb725614bb7e83821d2d58bc0a74af1b64fc Mon Sep 17 00:00:00 2001 From: vrabeshko Date: Sun, 28 Feb 2016 22:31:11 +0200 Subject: [PATCH] new api param access_token to each request --- lib/instagram.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/instagram.js b/lib/instagram.js index 77cdba1..3a52f87 100644 --- a/lib/instagram.js +++ b/lib/instagram.js @@ -150,6 +150,9 @@ var instagram = function(spec, my) { return handle_error(err, cb, retry); } } + if(typeof my.auth.access_token != 'undefined') { + params.access_token = my.auth.access_token; + } var options = { host: url.parse(my.host).hostname,