Shotgrid REST API - Making requests 401, Unauthorized on Google Apps Script

Hi there, I am currently trying to get access to shotgrid via REST API on Google Apps Script.

I was able to get the access token with Password Credentials method. However, I wasn’t able to make requests with the access token on Google Apps Script. The thing is it worked on my local host Terminal.

The following is my request code on Google Apps Script.

var headers = {
‘Authorization’:'Bearer ’ + access_token
var response = UrlFetchApp.fetch(URL + “”, headers);

The response is 401, Unauthorized as details attached.


On my localhost Terminal it worked with this command.
curl -X GET -H ‘Accept: application/json’ -H 'Authorization: Bearer [access_token]

Is there any reason for this authentication to fail on Google Apps Script? Or is there anything I missed in making the requests?

Thanks in advance.