Skip to content

Instantly share code, notes, and snippets.

@zengfenfei
Created May 22, 2017 07:49
Show Gist options
  • Save zengfenfei/b334a4a93a4f1c9948eea5c6336ea819 to your computer and use it in GitHub Desktop.
Save zengfenfei/b334a4a93a4f1c9948eea5c6336ea819 to your computer and use it in GitHub Desktop.
// Builds the url: '/account/~/extension/~', and make a PUT request to it
rc.account().extension().put({ status: "Enabled" }).then(function () {
console.log("Success to update extension.");
}).catch(function () {
console.error("Fail to update extension.");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment