dwaring87 / rtm-api Goto Github PK
View Code? Open in Web Editor NEWRemember the Milk API Interface
License: MIT License
Remember the Milk API Interface
License: MIT License
I was having an issue trying to get rtm.tasks.setStartDate
working, and I was getting the error message Error "[120] Method not valid for requested version
. It turned out that it was because RTM-API was using version 1, as the parameter it was passing wasn't correct.
It is set up to pass version=2
as a GET parameter, but the correct parameter is simply v=2
as explained in the API documentation.
I found that I could fix this issue by changing line 177 of get.js from:
args.params.version = version;
to:
args.params.v = version;
If you want, I can put this in a pull request.
Unfortunately, this project (along with the rtm-cli) is not something I've had the chance to put any work into over the last few years.
If anyone has a fork that they are currently maintaining, feel free to leave a comment below and I can link to it from the README of this repo so others can more easily find it.
I was getting an error using RTM-API from within AWS Lambda because it was trying to write to a cache in a location which I did not have permission to access. I found this thread explaining that I was supposed to store files in the /tmp directory. As such, changing this line in src/utils/taskIds.js:9
:
const FILE = path.normalize(os.homedir() + '/' + FILENAME);
to:
const FILE = path.normalize('/tmp/' + FILENAME);
fixed the issue for me. It would be good if users could configure this somehow. I think I'm done with this project now, but if it ever breaks and I need to update the RTM-API dependency, obviously I will lose the changes.
The cached List IDs are not updated after a Task is moved to a different List.
Workaround: Clear the cache, user.clearTaskIndexCache()
, if a Task is moved to a different List.
Possible Fix: When user.tasks.move()
is used, update the cached list id for the task to that of the new List.
I have tried to use this method to get a taskseries and then filter out all the uncompleted tasks in that list.
I am trying the below nodejs code:
let params = {
list_id: "42777480",
taskseries_id: "361846324",
completed: ""
};
currUser.get('rtm.tasks.getList', params, function(err, resp){
if (err) {
return console.log(err.toString());
}
console.log(resp);
var jsonStr = JSON.stringify(resp);
console.log(jsonStr);
});
But I got all the lists under the list_id 42777480, the other params still not working. Could you let me know how to use this API to achieve detail filters?
It's really critical for me. Please take a look asap.
Thanks!
Allen
Issue
Steps to Reproduce
rtm ls
โ ERROR: TypeError: Cannot read property 'name' of undefined
Attempted Fixes
Expected Outcome
Sidenote
I totally love this cli
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.