I'd like to use dropbox as a remote storage center for some text files created by a deployed Shiny app. I need web users to be able to submit to a form which writes these files back to dropbox. In RStudio, I installed rdrop2, but I'm having trouble getting permanent remote access in the account which I set up for the storage. I ran
token <- drop_auth()
saveRDS(token, file = "<savelocation>.rds")
and can find the token file on my computer. However all I did was add dtoken = token into my other code using the token from the global environment. Everything worked as expected until I tried to pick it up the next day again, by which I had lost authorization. Now when I try I'm getting: Warning: Error in drop_upload: Unauthorized (HTTP 401). I think this is because the token expired, but I don't understand how to get a refreshing token despite reading other posts here. I can't even authorize it anymore and get it to work like the first time.
Another solution I heard of was copying the httr-oauth file into the working directory. Would this be a better idea? If so, how would I do it.
Thanks!