ForumsSearch



Search results for "Posted by Greg"
Author Message
Greg

Posted Nov 11, 2011 in: API Issues?
Score: 0
  • Greg
  • Posted: Nov 11, 2011
  • Score: 0
A couple hours ago my API requests to get tasks started timing out. I haven't been able to successfully connect to the Toodledo API since. This application has worked perfectly for nearly a year.

Is there anything going on with the Toodledo servers or do I need to look elsewhere?

Thanks!
Greg

Posted Dec 10, 2010 in: Help formatting an edit.php request
Score: 0
  • Greg
  • Posted: Dec 10, 2010
  • Score: 0
Can you explain what you mean by "put into the json block for each task you want rescheduled"? Maybe show where it fits below...

key=12345;tasks[{"id":123,"completed":123}]

Thank you!
Greg

Posted Dec 09, 2010 in: Rescheduling through API 2.0 broken?
Score: 0
  • Greg
  • Posted: Dec 09, 2010
  • Score: 0
I can seem to get a repeating task to reschedule through the API.

I'll skip the rest of the URL, but...

tasks=[{"id":158932683,"completed":1291927508}]

works perfectly fine.

tasks=[{"id":158932683,"completed":1291927508}];reschedule=1

marks the task complete. No rescheduling.


tasks=[{"id":158932683,"completed":1291927508,"reschedule":1}]

returns a server error.

HELP! PLEASE!

Thanks!

Greg


This message was edited Dec 09, 2010.
Greg

Posted Dec 09, 2010 in: Help formatting an edit.php request
Score: 0
  • Greg
  • Posted: Dec 09, 2010
  • Score: 0
Ok... I think there's more going on here that meets the eye... If I put this URL

http://api.toodledo.com/2/tasks/edit.php?key=99fd6cf9438bc73b42604261f73cc4ff;tasks=[{"id":158932683 ,"completed":1291926021,"reschedule":1}];fields=reschedule

in which I've INTENTIONALLY used an invalid task id, I get the following back:

[{"errorCode":7,"errorDesc":"Invalid task ID"}]

Perfectly reasonable. However, if I fix the task ID, here's what I get:

The website encountered an error while retrieving http://api.toodledo.com/2/tasks/edit.php?key=99fd6cf9438bc73b42604261f73cc4ff;tasks=[{%22id%22:15893 2683,%22completed%22:1291926021,%22reschedule%22:1}];fields=reschedule. It may be down for maintenance or configured incorrectly.

Any ideas? Obviously Toodledo is getting enough info to figure out the task ID. But something else is breaking...


This message was edited Dec 09, 2010.
Greg

Posted Dec 09, 2010 in: Help formatting an edit.php request
Score: 0
  • Greg
  • Posted: Dec 09, 2010
  • Score: 0
I'm struggling to get a properly formatted URL to invoke edit.php.

I've tried about 100 different permutations of the code at the below. Nothing seems to nail the "URL encoded JSON encoded array" requested by the API documentation.

Thanks in advance!

$arr = array ('id'=>$id,'completed'=>1291926021,'reschedule'=>1);
$tasks = json_encode(array($arr));

$params = array('key'=> $this->key);
$params['tasks'] = $tasks ;

$url="http://api.toodledo.com/2/tasks/edit.php?".http_build_query($params) ;

$response = file_get_contents($url);


This message was edited Dec 09, 2010.
Greg

Score: 0
  • Greg
  • Posted: Dec 07, 2010
  • Score: 0
Is there support in the API for retrieving tasks from just a specific folder (or context, or ...)? Or, do you just have to retrieve all tasks and filter later?

Thanks!
Greg

Posted Dec 07, 2010 in: Simple
Score: 0
  • Greg
  • Posted: Dec 07, 2010
  • Score: 0
Nevermind... way past this.
Greg

Posted Dec 07, 2010 in: Simple
Score: 0
  • Greg
  • Posted: Dec 07, 2010
  • Score: 0
I know this is super simple, but this little kick will give me all I need to really get rolling.

Can someone give me the simple PHP to get results of an http request into a variable?

Something like:

http://api.toodledo.com/2/account/token.php?userid=abcdef1234556789;appid=myAppID;
vers=21;device=iphone4;os=401;sig=a1s2d3f4a5s6d7f8a9s0d

[to get a session token]

Thanks in advance!

Greg