+ Add Question

New task Intent

I

Hi,

Would it be possible for you to share the Intent (if there isn't, I'd like to request one) that can be used to programmatically add new tasks from other Android apps.

My usage would be for Tasker (http://tasker.dinglisch.net/) to add notes when things happen, such as a note to return a missed call.

Thanks,

Jarryd

All responses

David Trey staff
Replied on Apr 09, 2013 - 17:50

Hello Jarryd,

We have an API which you can use to interact with Todoist: https://todoist.com/API/help and our app also allows to "Share" item from anywhere else to Todoist.


Best regards,
David

I
iisjreg
Replied on Apr 10, 2013 - 11:29

Thanks, I've had another look at the API and I've got it to work!

Another quick API question then:

Will a user API token ever change and if so what situations would change it?

Thanks.

David Trey staff
Replied on Apr 10, 2013 - 11:52

Jarryd,

The API token will never change, it's fixed for one Todoist account. It may only be banned if we would detect suspicious activity originating from it.


Best regards,
David

I
iisjreg
Replied on Apr 10, 2013 - 13:31

Thanks, good to know!

P.s. Or if the user requests a new token :)

TH
Tracy Helms premium
Replied on Oct 01, 2013 - 14:25

iisjreg
Could you please share how you did this?
I've made a nice call logger with tasker and it would be great to be able to throw text at todoist.

I
iisjreg
Replied on Oct 01, 2013 - 16:58

Hi,

You can use the HTTP Get Action with:

Server:Port:
https://todoist.com

Path:
API/addItem (for example)

Attributes (each on new line):
project_id=(9 digit project number)
content=%(content variable)
priority=(1-5)
token=(Api token)

Timeout:
10 (or your preference)

Mime:
text/plain

- the server will then responds and the response will be stored in %HTTPR. For example, you could then have an IF action with the condition %HTTPR ~ 200 and then a Flash action saying "Success!"

J