Skip to content

Instantly share code, notes, and snippets.

@laser laser/client.js
Last active Aug 29, 2015

What would you like to do?
Basic Client - JavaScript (browser)
var client = Barrister.httpClient("/v1/todos");
client.loadContract(function() {
var proxy = client.proxy('TodoManager');
var properties = { 'title' : 'Call Dad', 'completed' : false };
proxy.createTodo(properties, function(err, result) {
if (err) {
else {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.