Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 10 commits into from
Nov 29, 2022
2 changes: 1 addition & 1 deletion packages/nodes-base/credentials/TodoistApi.credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class TodoistApi implements ICredentialType {

test: ICredentialTestRequest = {
request: {
baseURL: 'https://api.todoist.com/rest/v1',
baseURL: 'https://api.todoist.com/rest/v2',
url: '/labels',
},
};
Expand Down
4 changes: 2 additions & 2 deletions packages/nodes-base/nodes/Todoist/GenericFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
};

Expand Down
Loading