Create task title with whitespace problem

20 views
Skip to first unread message

Jordan Davis

unread,
Jan 31, 2013, 11:11:14 PM1/31/13
to producteev-...@googlegroups.com
When trying to create a task with whitespace in the title, I get an error.

For instance, if I'm using the url:
https://api.producteev.com/tasks/create.json?api_key=<apikey>&title=NewTask&token=<token>&api_sig=<api_sig>
the creation is successful.

If I use:
https://api.producteev.com/tasks/create.json?api_key=<apikey>&title=New+Task&token=<token>&api_sig=<api_sig>
or
https://api.producteev.com/tasks/create.json?api_key=<apikey>&title=New%20Task&token=<token>&api_sig=<api_sig>
I get the error:Wrong api_key or signature

Is there another way to encode the spaces in the title?

Thanks
Jordan
Message has been deleted

Jordan Davis

unread,
Feb 2, 2013, 1:14:14 AM2/2/13
to producteev-...@googlegroups.com
I discovered my issue.  The API expects the MD5 hash to use whitespaces, I was url encoding before the hash, when I should be encoding after the hash.
Reply all
Reply to author
Forward
0 new messages