Skip to content

Commit

Permalink
Merge pull request #942 from evancohen/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
sdetweil authored Nov 22, 2021
2 parents e1cbfe1 + 3b1c9b3 commit fbc3704
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/todoist/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'use strict';
function TodoistService($http, $httpParamSerializer, $q){
var service = {};

const service_endpoint='https://todoist.com/API/v8/sync'
service.getItemsFromProject = function(project) {
var deferred = $q.defer();
service.requestProjectsWithItems().then(function (response) {
Expand All @@ -18,7 +18,7 @@
var project_id = service.getProjectId(project, response);
var req = {
method: 'POST',
url: 'https://todoist.com/API/v7/sync',
url: service_endpoint,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
Expand All @@ -38,7 +38,7 @@
var item_ids = service.getItemIds(item, project_id, response);
var req = {
method: 'POST',
url: 'https://todoist.com/API/v7/sync',
url: service_endpoint,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
Expand All @@ -55,7 +55,7 @@
var deferred = $q.defer();
var req = {
method: 'POST',
url: 'https://todoist.com/API/v7/sync',
url: service_endpoint,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
Expand Down

0 comments on commit fbc3704

Please sign in to comment.