ForumsQuestionsbackup & 2-step authentication
backup & 2-step authentication
Author | Message |
---|---|
chr.ver |
Hi,
Previously I had a script running at set intervals (crontab) that pulled https://www.toodledo.com/tools/backup.php so that I had a full backup of Toodledo. This was done using curl providing my username and password. See below for the relevant lines. I recently switched on 2-step authentication. But now I can't seem to login to the site anymore, even with an application specific password. Any ideas how to resolve this? (and I prefer not to switch back from 2-step authentication) curl --silent \ --cookie-jar $thisCOOKIEJAR \ -d email="$LOGIN" \ -d pass="$PASSWORD" \ https://www.toodledo.com/signin.php curl --silent \ -o $thisEXPORTFILE \ -b $thisCOOKIEJAR \ https://www.toodledo.com/tools/backup.php Rgds, Chris This message was edited Jul 08, 2014. |
Jake Toodledo Founder |
There are two ways to login when you have 2-step authentication enabled.
1) Enter your email, password and a one-time code that is generated in an app. 2) Use our API in combination with an app-specific password. Only #1 will work if you want to use our backup.php tool and I dont know if this is possible with cron. |
chr.ver |
Jake,
Thanks for the quick response. I understand the API is the way forward (if I want to keep 2-step auth). I also understand I can fetch nearly everything I want via calls like: - http://api.toodledo.com/3/tasks/get.php?access_token=yourtoken - http://api.toodledo.com/3/notes/get.php?access_token=yourtoken (docs via api.toodledo.com) But I'm not clear on the authentication part. Could you please outline the most simple setup here so that above api calls would work for my userid and app-specific id. Much appreciated, and of great interest to a lot of people I presume. Thx, Chris |
Jake Toodledo Founder |
Authentication is described in our API documentation. Here is the link:
http://api.toodledo.com/3/account/index.php Hope that helps! |
garyo |
Does anyone have a cron backup script that works with 2-step auth?
|
You cannot reply yet
U Back to topic home
R Post a reply
To participate in these forums, you must be signed in.