Giter VIP home page Giter VIP logo

rtm-api's People

Contributors

douglasfsmn avatar dwaring87 avatar jareds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rtm-api's Issues

Version parameter isn't working, is operating as v1

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.

FUTURE MAINTENANCE

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.

Cache location is not configurable

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.

BUG: Cached List IDs incorrect after moving List

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.

user.get('rtm.tasks.getList', params, function(err, resp)) not working normally with params

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

view-only users cannot use rtm-cli

Issue

  • when a list is shared with another user, but the permission is set to view-only, the shared-to user can no longer use the cli

Steps to Reproduce

  • setup an account with user A
  • setup an account with user B
  • user A shares a list with user B but specifies view-only
  • user B enters rtm ls
  • user B sees โœ– ERROR: TypeError: Cannot read property 'name' of undefined

Attempted Fixes

  • logout/login
  • change the name of the list
  • made sure the user accepted the invite to the list
  • change the user permissions to edit (technically fixes it, but then they have edit capabilities)

Expected Outcome

  • user B should be able to see the list, but should not be able to edit it

Sidenote
I totally love this cli

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.