Add jQuery.xapi(call, payload, successcb, errorcb) to call the API from