Skip to content

Instantly share code, notes, and snippets.

//http://kjur.github.io/jsrsasign/
function xeroTest() {
var oauth_nonce = createGuid();
var oauth_timestamp = (new Date().valueOf()/1000).toFixed(0);
var CONSUMER_KEY = ''
var PEM_KEY = '-----BEGIN RSA PRIVATE KEY-----' +
'MIICXwIBAAKBgQDPB7KunxwnwTAv5nBGNkUC1Di6ff04tvduhXnYUeYVfX63eepd' +
'...' +
'4JUWEB4JN4hH4wl6GJWviWknMOOSCic4IihFUGzJobDbA9w=' +