Skip to content

Commit

Permalink
Merge pull request #9 from gorkemyurt/master
Browse files Browse the repository at this point in the history
added edit functionality
  • Loading branch information
indexzero committed Apr 15, 2014
2 parents db1d860 + 1716be2 commit 83626f1
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion lib/asana-api/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,22 @@ Tasks.prototype.create = function(workspaceId, projectId, taskData, callback) {
callback(null, task);
});
});
};
};

Tasks.prototype.edit = function(taskId, taskData, callback) {
var options = {
method: "PUT",
path: "/tasks/" + taskId,
body: {data: taskData},
};

var self = this;
return this.client.request(options, function(res, result) {
if (!result)
return callback(res.result.errors);
});
};




0 comments on commit 83626f1

Please sign in to comment.