Legend

Forum

Unread topics or posts

Topic

Unread posts

Locked

Announcement

Search

Search results for "Posted by sandro.krumbein"



AuthorMessage
sandro.krumbein

Posted: Mar 28, 2014
From Topic: Request to API v2



What I meant was host: it's Strato, Germany, with a PowerWeb Perfect package

My ISP (just in case it actually matters) is Telekom. But the script was hosted on the Strato server
sandro.krumbein

Posted: Mar 27, 2014
From Topic: Request to API v2



I DID mean is that when I put an

exit;

right before that last line, I get a response immediately. Alle the debug information I have put before that...

When I put it after that, it takes forever (I always stopped after two or three minutes at latest).

Now however, I have to say, that it works again. No idea way. And I will only start to care, if it happens again ;-)

P.S. The getting stuck was no isolated incident. I have tried a dozen times over the course of two days. Maybe there were some issues with my provider? That the curl call simply didn't go out from their servers? I don't know...

P.P.S. Thank you for caring :-)
sandro.krumbein

Posted: Mar 27, 2014
From Topic: Request to API v2



Hello!

I am having problems with an API request to v2 since a few days. The script (PHP) has never failed me in during the year. Now it's stuck at the point where the Curl request to the API is made.

$url = http://api.toodledo.com/2/tasks/get.php
$fields = key=SomeRealKeyDifferentFromThisOne&modafter=1393312365&num=1000&start=1&fields=folder,tag

Here is the curl execution function:
unction curlRequest($url, $fields)
{
//initializing the curl object
$ch = curl_init($url);

//return the result as a string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//set content type to be json
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/x-www-form-urlencoded; charset=utf-8"));

curl_setopt($ch, CURLOPT_POST, 1);
//setting the data to be posted
if ($fields <> '')
{
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
}

//get the response
$jsonResponse = curl_exec($ch);

and then some more, the last command is the script gets stuck at

Has anything changed with respect to what I am doing here?

Regards,
Sandro
sandro.krumbein

Posted: Nov 03, 2013



Good idea, will check.

Should Ctrl + F5 resolve this?

Sandro
sandro.krumbein

Posted: Oct 22, 2013



One more:
sorting folders alphabetically (then saving) didn't help, deleting another folder (then saving) did
sandro.krumbein

Posted: Oct 22, 2013



As I said, one went through. The next one got stuck again

I confirmed that the folder existed in the admin view
Used Ctrl + F5 on the website
Checked create task dropdown box and the one in the task list for the folder
Went to folder admin page and saved changes (without making any)
Still to no avail
Then added another folder, then they both showed up

Ideas? A bug?
sandro.krumbein

Posted: Oct 22, 2013



Damn it, of course not it works :-/

The dropdown box in the task creation area would be one example. Yesterday I created a folder via the API (none private folder), reloaded the ToodleDo.com page by pressing F5 several times and the folders didn't appear. They did though when I archived another folder...

Now I just did the same thing, reloaded and there it is. Any other explanation for that phenomenon?

Sandro
sandro.krumbein

Posted: Oct 21, 2013



Hello!

Can it be that the 51st non-archived folder doesn't appear in the dropdown box in the web interface anymore while the 50th still does?

Sandro
sandro.krumbein

Posted: Oct 21, 2012
From Topic: Alarm feature



Final feedback: that did indeed do the trick!

No clue why it had worked before and who (probably me) disabled those settings ;-)
sandro.krumbein

Posted: Jul 20, 2012
From Topic: Alarm feature



Sorry for the late reply... Does the watchlist feature actually work or had I not ticked the box?

Here is what it looks like: http://d.pr/i/EjNe

When I click the "Setup customizable alarms/reminders" link, I am taken to the settings screen. I am a pro subscriber and have been all this time (just in case that matters)
sandro.krumbein

Posted: Jul 13, 2012
From Topic: Alarm feature



Recently, for a few weeks, I had an alarm checkbox and a combobox to select how much time in advance I wanted to be alarmed in my Due Date/Time pop up. Where is it gone now?

Sandro
sandro.krumbein

Posted: May 30, 2011
From Topic: Tasks missing



No, unfortunately that isn't the problem. As I said the only criteria is a particular folder and they are all in there. Just checked again
sandro.krumbein

Posted: May 27, 2011
From Topic: Tasks missing



Hello

I have done a search, the only criteria was a particular folder. All subtasks in the folder are completed, should that be of relevance. Now when I show the subtasks flattened, they are all there (compared to the CSV export). When I show them indented, some are missing. There are tasks missing, that have a later due date, than some of those, that are shown.

Any ideas?
sandro.krumbein

Posted: May 11, 2011
From Topic: Import CSV to Excel



Have the 2007 version of Excel. And I have tried either: just double clicking, opening from the inside or import from text... None works

Here might be the kicker though and please don't hate me for mentioning it so late. I am German. The Office version is actually English (showing the English menu and stuff), but the operating System (Windows 7) is German. Might that be it? For example there is a difference in the decimal mark between the German and the English version. It's the comma for us and the dot for you, isn't it?

Anyway, thanks for all the effort! I have finally found a solution I am happy with. Here goes: software is called Exportizer, which is able to import and export all kinds of table data. CSV and XLS are amonst them. Now I have created a batch file, which does this for me (part was done by the software). Now the conversion is done by simply dragging the downloaded CSV onto my batch file. Voila, there is my CSV file, which is now compatible with my Excel version

Here is the batch code, for those, who would wonder how to get the drag and drop going:
"C:\Program Files (x86)\Exportizer\exptizer.exe" /ado /export /ExportType=CSV /ExportMode=CREATE_OR_REPLACE+INSERT /separator=; /textSchema=0 /IncludeColNames /DelimitAllFields /CloseWhenDone /minimize /OpenDestination /LineTerminator=WINDOWS /IncludeMemo %1 C:\Users\Administrator\Documents\Lokalim\Auswertung\Zeit\toodledo_completed.csv

The %1 is the placeholder for the name of the dropped file

Thank you!
Sandro
sandro.krumbein

Posted: May 10, 2011
From Topic: Import CSV to Excel



I liked that idea...

But I have checked that again and it's still the same issue. Doesn't recognize what is in quotation marks as one column

Thank you!

Sandro
sandro.krumbein

Posted: May 10, 2011
From Topic: Import CSV to Excel



Hey guys and thanks for your replies!

True, by definition, you are doing it right and Microsoft is wrong. I know I can change the separator to a comma during the import process. But Excel ignores the quotation marks around the values of the columns and then tries to separate those, that contain commas, into columns as well

For the same reason the replace wouldn't work either. The semicolons would be considered separators as well and Excel would try to split the text into columns

The actual problem is, that Excel ignores the quoation marks, I guess...

Sandro
sandro.krumbein

Posted: May 09, 2011
From Topic: Import CSV to Excel



Hello!

I use the CSV export do get my completed tasks into Excel to analyse them. The problem is that Excel doesn't naturally use a comma as a separator, but rather the semicolon.

Long story short: I have tried all different ways, but when I have a task, that contains a multiline note, it gets all messed up, because Excel seems to ignore the quotation marks. My current workaround is to convert the CSV file to an XLS file via zamzar.com and use that one

Could it maybe implemented to actually export as a CSV file with ;-separated columns?

Or does anyone know the trick to make Excel do what I want it to do?

Or does anyone at least know of a freeware CSV-2-ExcelCSV or CSV-2-XLS converter I could use?

Thank you very much!

Sandro
sandro.krumbein

Posted: Mar 09, 2011
From Topic: POST to API via cURL



Okay, this is what the cURL website says about the -d option:
Sends the specified data in a POST request to the HTTP server, in the same way that a browser does when a user has filled in an HTML form and presses the submit button. This will cause curl to pass the data to the server using the content-type application/x-www-form-urlencoded

Sounds reasonable to me. Or does the API insist on the application/json content-type?

I have tried leaving the message un-encoded and using the --data-urlencoded option, which is supposed to encode it itself, but to no avail either

curl http://api.toodledo.com/2/tasks/edit.php?key=myKey;f=xml --data-urlencode tasks=[{"id":"4384388","title":"Task 1 changed"}]

But maybe we can shortcut this discussion: what I am trying to do is to change the completed date of some of my tasks, which I forgot to tick off on the right day (a well known problem I guess). If you now tell me, that this isn't even possible via the API, then it's all pointless :-)

If it is possible, I still want to find a way to do it. I don't insist on cURL. I might try libCURL via C# then or something...

Thanks,
Sandro
sandro.krumbein

Posted: Mar 05, 2011
From Topic: POST to API via cURL



Alright, despite believing to have done this before I checked this again. The task I used back then has already been deleted, but with the task #4384394 I have the same problem. Here is the entire output (almost) straight from the command line window. First retrieving details of the task and then trying to edit it

C:\Users\Administrator\Desktop\Curl + Toodledo>curl http://api.toodledo.com/2/tasks/get.php?key=myKey;fields=folder,star,priority;f=xml;id=4384394
<?xml version="1.0" encoding="UTF-8"?><tasks num='1' total='1'><task>4384394<title>Task 4</title><modified>1299318739</modified><completed>0</completed><folder>275306< /folder><priority>0</priority><star>0</star></task></tasks>
C:\Users\Administrator\Desktop\Curl + Toodledo>curl http://api.toodledo.com/2/tasks/edit.php?key=myKey;f=xml -d tasks=[{"id"%3A"4384394"%2C"title"%3A"Test task 2"}]
<?xml version="1.0" encoding="UTF-8"?><tasks><error id='7'>Invalid task ID</error></tasks>

So, yeah I believe it is there :-)


This message was edited Mar 05, 2011.
sandro.krumbein

Posted: Mar 03, 2011
From Topic: POST to API via cURL



Hello,

I am trying to do a simple update of tasks by using cURL. I have come to the point that I can retrieve tasks, but now I want to edit them by doing a post

Here is my line of code from the windows commandline:
>curl http://api.toodledo.com/2/tasks/edit.php?key=myKey;f=xml -d tasks=[{"id"%3A"3917814"%2C"title"%3A"Test task 2"}]

And this is the answer:
<?xml version="1.0" encoding="UTF-8"?><tasks><error id='7'>Invalid task ID</error></tasks>

It seems that I am not completely off, but can anyone shed light on this?

Thanks,
Sandro
Skip to Page:  1   2      Next
Contact Us | Blog | API | Jobs | Press | Documentation | Forums Privacy | Terms | Copyright © 2004-2014