Skip to content

Retrieve token ERR: TypeError: Cannot find function setProp in object [object Object]. #3

Open
@jesus21282

Description

@jesus21282

Hi thanks for the contribution.

I am trying to retrieve token from OneDrive, and in 2 Google side, last step Click "latest code" which is supposed to lauch new tab saying Please push this button after set redirect_uri to 'https://script.google.com/macros/s/#####/usercallback' at your application., it says instead:

TypeError: Cannot find function setProp in object [object Object]. (line 3, file "GetOneDriveToken")

I am using version 4 of your library, and I pasted doGet(e)) as follows:

function doGet(e){
  var prop = PropertiesService.getScriptProperties();
  OnedriveApp.setProp(
    prop,
    "my-app-dummy-id-from-onedrive", // <--- client_id
    "my-app-dummy-secret-from-onedrive" // <--- client_secret
  )
  return OnedriveApp.getAccesstoken(prop, e);
}

May you help me solve this? thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions