Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jesus21282 opened this issue Jul 26, 2018 · 1 comment

Comments

@jesus21282
Copy link

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

@tanaikech
Copy link
Owner

tanaikech commented Jul 28, 2018

Thank you for your comment. I have to apologize you and all users.

I had forgot that it added setProp(). I updated it just now. I would like to report because I could remove this bug. Could you please try it again?

I'm really sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants