Created
June 6, 2017 01:02
-
-
Save dcomartin/8fb26920f2c164da18de21c952da46f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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