diff --git a/README.md b/README.md index 8b2ed1d..0152169 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ![Todoist Node Red](https://repository-images.githubusercontent.com/458516480/01940d4d-b7eb-4683-9afb-ff57ee1a86c1) -This is a node-red palette that allows you to interact with your [Todoist](https://todoist.com) account via the [Todoist REST API](https://developer.todoist.com/rest/v1/#overview) +This is a node-red palette that allows you to interact with your [Todoist](https://todoist.com) account via the [Todoist REST API](https://developer.todoist.com/rest/v2/#overview) ## Install diff --git a/lib/todoist-query.js b/lib/todoist-query.js index 1896ec3..6f6999a 100644 --- a/lib/todoist-query.js +++ b/lib/todoist-query.js @@ -24,7 +24,7 @@ module.exports = function todoistQuery({ Authorization: "Bearer " + token }; - var url = `https://api.todoist.com/rest/v1/${endpoint}`; + var url = `https://api.todoist.com/rest/v2/${endpoint}`; var theHeaders = headers || defaultHeaders; var theMethod = method || "get"; diff --git a/package.json b/package.json index cf3e5cd..8f4dbcb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@foxleigh81/node-red-contrib-todoist-api", - "version": "0.0.4", + "version": "1.0.0", "description": "Todoist API interaction nodes for Node-RED", "node-red": { "nodes": {