ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > FARR Plugins and Aliases

FARR plugin: FARR Remember The Milk 1.1.3

<< < (48/51) > >>

RobFreundlich:
I've been playing around with the RTM API, and I found that if you use a Smart List's ID with the rtm.tasks.getList method, it works great.  For example, I made this series of calls:

1. The authentication sequence, leading to an auth_token of 12345

2. http://api.rememberthemilk.com/services/rest/?method=rtm.lists.getList&api_key=my_key&auth_token=12345&api_sig=the right sig

Result:

--- Code: Text ---<rsp state="ok"><lists>... a bunch of list tags  <list id="39989832" name="Today's agenda" deleted="0" locked="0" archived="0" position="0" smart="1" sort_order="0">    <filter>(due:today OR dueBefore:today OR (NOT start:never AND NOT startAfter:today)) AND NOT list:Groceries AND NOT location:brain</filter>  </list>... a bunch of other list tags</lists></rsp>
3. http://api.rememberthemilk.com/services/rest/?method=rtm.tasks.getList&api_key=my_key&auth_token=12345&list_id=39989832&filter=status:incomplete&api_sig=the right sig

Result: XML containing the incomplete tasks in my "Today's agenda" Smart List


I didn't try putting the name of the Smart List into the filters since they provide the list_id parameter.  But this seems to work properly, so I imagine it ought to be pretty easy to work into the plug-in, assuming you're keeping track of list ID's.

phitsc:
I am using the ID of the smart list, which does not seem to work. Can you try your query in 3. with only the list_id, but without the filter? And maybe also the list_id with an empty filter? Using only the filter seems to work though, I found this as a solution in the dev forum (and according your test also the filter and the list_id together). I did not keep track of the filter, so I assume the introduction of the filter and the respective change to rtm.tasks.getList is when the functionality broke in FarrMilk.

RobFreundlich:
I am using the ID of the smart list, which does not seem to work. Can you try your query in 3. with only the list_id, but without the filter? And maybe also the list_id with an empty filter? Using only the filter seems to work though, I found this as a solution in the dev forum (and according your test also the filter and the list_id together). I did not keep track of the filter, so I assume the introduction of the filter and the respective change to rtm.tasks.getList is when the functionality broke in FarrMilk.
-phitsc (July 11, 2016, 12:48 AM)
--- End quote ---

When I first tried it, I used only the list_id, and got back both complete and incomplete tasks that meet the list's criteria.  So that definitely works.  I just added the status:incomplete filter so that I'd only get the incompletes.

phitsc:
Hm, you are right, it does indeed work. I did not change a single line of code related to smart lists and it seems to work with my current build. How strange :tellme:

Could you try this version please?

https://dl.dropboxusercontent.com/u/3612554/FarrMilkSetup.exe

The only functional change is that it's using the https backend now. There are no changes related to smart lists. I did some minor refactoring, getting rid of a library which is not required anymore with the current version of the compiler.

RobFreundlich:
I got an error message "Unsupported protocol":
FARR plugin: FARR Remember The Milk 1.1.3

and a new entry in pluginlog.txt:

--- ---08:43 AM, Tuesday, July 12, 2016
 Error initializing plugin do_init function
C:\Program Files (x86)\FindAndRunRobot\Plugins\FarrMilk\libcurl.dll

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version