Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created June 6, 2017 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcomartin/8fb26920f2c164da18de21c952da46f5 to your computer and use it in GitHub Desktop.
Save dcomartin/8fb26920f2c164da18de21c952da46f5 to your computer and use it in GitHub Desktop.
let Siren = require('super-siren');
let follow = Siren.Helper.follow;
let performAction = Siren.Helper.performAction;
Siren.get(uriOfTodoItem)
.then(performAction('complete'))
.then(res => {
/* Process Siren action HTTP response here */
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment