Perhaps this can be useful: https://github.com/web2py/web2py/blob/master/gluon/contrib/login_methods/dropbox_account.py#L90
has been there for a while but I am not sure anybody has tested it very well. massimo On Monday, 9 April 2012 09:14:56 UTC-5, Paul Gerrard wrote: > > Hi, > > I got distracted by other things and only just came back to this. The > problem I was having was in my code was the token was 'disabled or > invalid'. I'm sure this is resolved by using the callback in the redirect > back from the Dropbox site. I commented out the code that's not relevant > for me in your code and it works fine now. > > As for using cron - I expect you could skip the redirect and go from line > 191 directly to 204. Presumably you need a try/except around 204? > > Paul. > > On Thursday, 5 January 2012 17:28:41 UTC, Joseph Jude wrote: >> >> If anyone is interested, you can look into the code for dropbox >> connection here: >> >> http://goo.gl/QYT2y >> >> This is my default.py. Look at dropbox_connect and process_dropbox. >> >> Question: How can I automate this with cron? When I do it, it stops with >> the redirect. >> >> Thank you, >> Joseph >> >