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
//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=' + |