Start 2025 on time and up to date! Seamlessly integrate your calendars into Dropbox with these simple steps! 📆

Forum Discussion

lucasj's avatar
lucasj
Explorer | Level 3
2 years ago
Solved

Powershell Oauth2 Refresh Token

Hey all!  Thanks in advanced.   I am trying to write a powershell script to get an offline refresh token so I can do unattended uploads.   The problem is that I have to authenticate for an author...
  • Greg-DB's avatar
    Greg-DB
    2 years ago

    I'm not sure what you mean when you say you are "not getting any type of response from the curl command". For reference, if you need to debug something with curl, you can use the "-v" flag to enable verbose mode.

     

    In any case, I haven't tested your new code, but the parameters look right. I also don't see where you retrieve the access token from the new /oauth2/token call, but assuming you do either manually or in code not shown, it seems right. Does it work for you when you run it?