If you are using a users token that is fine!
Anything else is a violation of the developer agreement.
Just spotted the error in your code:
'Authorization ': 'Bearer ' + accessToken
should be
'Authorization': 'Bearer ' + accessToken
you had an extra space after authoziation