feat(Todoist Node): Update to use latest api version (#4650)

This commit is contained in:
Jonathan Bennetts
2022-11-29 11:37:37 +00:00
committed by GitHub
parent 579f9c4d4e
commit 09a48c51b6
9 changed files with 1934 additions and 704 deletions

View File

@@ -23,7 +23,7 @@ export async function todoistApiRequest(
): Promise<any> {
const authentication = this.getNodeParameter('authentication', 0) as string;
const endpoint = 'api.todoist.com/rest/v1';
const endpoint = 'api.todoist.com/rest/v2';
const options: OptionsWithUri = {
method,
@@ -56,7 +56,7 @@ export async function todoistSyncRequest(
headers: {},
method: 'POST',
qs,
uri: `https://api.todoist.com/sync/v8/sync`,
uri: `https://api.todoist.com/sync/v9/sync`,
json: true,
};