Skip to content

Instantly share code, notes, and snippets.

@alexserver
Last active October 26, 2015 18:45
Show Gist options
  • Save alexserver/ce6a3a77c8f978eea0ce to your computer and use it in GitHub Desktop.
Save alexserver/ce6a3a77c8f978eea0ce to your computer and use it in GitHub Desktop.

authentication

var sb = require('sb');

auth

sb.connect('company', 'token').then(function(wrapper){
  
});

get tickets

GET /tickets

var tickets = wrapper.tickets();

post ticket

POST /tickets

var ticket = {
};

var r = wrapper.insertTicket(ticket);
@unamashana
Copy link

This is neat :) I just read it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment