From 7257c25e1982622c932ec283d931b4cb515d2ccd Mon Sep 17 00:00:00 2001 From: Bernat Romagosa Date: Tue, 13 Mar 2018 17:01:03 +0100 Subject: [PATCH] remix project method --- cloud.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/cloud.js b/cloud.js index 9ef07d5d..e0f6d8c1 100755 --- a/cloud.js +++ b/cloud.js @@ -624,6 +624,23 @@ Cloud.prototype.unpublishProject = function ( ); }; +Cloud.prototype.remixProject = function ( + projectName, + username, + onSuccess, + onError +) { + this.withCredentialsRequest( + 'POST', + '/projects/' + encodeURIComponent(username) + + '/' + encodeURIComponent(projectName) + + '/remix', + onSuccess, + onError, + 'Could not remix project' + ); +}; + Cloud.prototype.updateNotes = function ( projectName, notes,