Access Aodocs api from Apps Script with Access Token

109 views
Skip to first unread message

Nitin Morey

unread,
Aug 10, 2022, 11:33:18 AM8/10/22
to Google Apps Script Community
Hello Every,
                    I am trying to develop a script for calling aodocs api from apps script but it failed with "you have to used oauth 2.0 authentication". Even I specify required scope in manifest of apps script "https://www.googleapis.com/userinfo.email" and "https://www.googleapis.com/drive". Below code is there :
  
const token = ScriptApp.getOAuthToken() /** Generated by Apps Script */
const res = UrlFetchApp.fetch(url,{
     'headers':{'Authorization':'Bearer '+token},
    'method':'GET',
     'contentType': 'application/json',
    "muteHttpExceptions":true
  })

Please where I am getting wrong and suggest solution.
Thanks in Advance.

Felipe Marquez

unread,
Nov 16, 2022, 3:11:49 PM11/16/22
to Google Apps Script Community

you have the solution for this?

Nitin Morey

unread,
Nov 17, 2022, 1:53:16 AM11/17/22
to Google Apps Script Community
yes

Integracion Processmaker AODOCS

unread,
Dec 19, 2022, 9:57:11 AM12/19/22
to Google Apps Script Community
you can share it?
Reply all
Reply to author
Forward
0 new messages