Skip to content

Commit

Permalink
Merge pull request #13 from foxleigh81/v2-api
Browse files Browse the repository at this point in the history
V2 api
  • Loading branch information
foxleigh81 authored Jun 9, 2023
2 parents b28b950 + 6deba66 commit cf4e8be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/todoist-query.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit cf4e8be

Please sign in to comment.