Dropbox Oauth2 script

Trying to figure a code flow so that i can move some automation away from zapier and have them automated in scripting. the 1pm in delay just make it doesn’t work for our team.