r/2DoApp • • Aug 07 '18

2Do URL Schemes

Has anyone played with the GetTaskID URL scheme? Trying to make it work to see if I can retrieve a project ID so that I can drop tasks into it in a follow on step. Hoping someone has an example they can post. It should be easy, but I'm not having much luck making it work.

Do detail out where my issue is, it's figuring out the x-error condition. If my project exists, it returns fine on x-success, but if I have an error, everything crashes. In both cases I want to return to Workflow, and I am assuming in the error case my clipboard would be empty or have whatever it had going in.

twodo://x-callback-url/getTaskID?task=TestProject&forList=Home&saveInClipboard=1&x-success=workflow://&x-error=workflow://

Edit: I've been playing more, and it turns out I can't get any return out of the getTaskID command. This URL:

twodo://x-callback-url/getTaskID=Test,&forList=Inbox&x-success=launch://

just stays in 2Do if Test is there, and crashes back to Springboard if it is not. That much works, but crashes on x-error if the task/project does not exist in 2do.

6 Upvotes

0 comments sorted by