Skip to content

Instantly share code, notes, and snippets.

View rjaus's full-sized avatar

Riley James rjaus

View GitHub Profile
@rjaus
rjaus / timesheet.xml
Created January 16, 2018 01:58
timesheet with multiple timesheetlines and tracking categories example
<Timesheets>
<Timesheet>
<EmployeeID>5e493b2e-c3ed-4172-95b2-593438101f76</EmployeeID>
<StartDate>2017-04-03</StartDate>
<EndDate>2017-04-10</EndDate>
<Status>Draft</Status>
<TimesheetLines>
<TimesheetLine>
<EarningsRateID>0daff504-2d42-4243-bdac-24f2bae0ce7c</EarningsRateID>
<TrackingItemID>40214bd2-9b9c-4f03-ab00-4d8025ef9cde</TrackingItemID>
@rjaus
rjaus / express.js
Last active January 16, 2018 17:10
node express ITR signature signing example
'use strict'
const express = require('express')
const bodyParser = require('body-parser')
const crypto = require('crypto')
const xero_webhook_key = 'XERO_WEBHOOKS_KEY'
// Create a new instance of express
const app = express()
@rjaus
rjaus / service.py
Created December 11, 2017 04:53
A gist of the xero webhooks example for aws lambda (python) taken from repo: https://github.com/rjaus/XeroWebhooksLambdaPythonDemo
# -*- coding: utf-8 -*-
import os
from xero import Xero
from xero.auth import PrivateCredentials
from xero.exceptions import XeroNotFound
from datetime import datetime
from dateutil.parser import parse
import hashlib
import hmac
import base64
@rjaus
rjaus / service.py
Created December 11, 2017 04:42
A minimal gist (take from: https://github.com/rjaus/XeroWebhooksLambdaPythonDemo) to show how Intent to Receive can be handled in a Lambda function written in Python.
# -*- coding: utf-8 -*-
import os
from xero import Xero
from xero.auth import PrivateCredentials
from xero.exceptions import XeroNotFound
from datetime import datetime
from dateutil.parser import parse
import hashlib
import hmac
import base64
@rjaus
rjaus / service.py
Last active November 13, 2017 07:41
Xero Phaxio Lambda Gist
# -*- coding: utf-8 -*-
import os
from phaxio import PhaxioApi
from xero import Xero
from xero.auth import PrivateCredentials
# Setup the Xero Private App
# Ensure your private key is listed in your .gitignore, so you doesn't end up in your repo.
# Xero API Consumer Key is retrieved via an environmental variable
# Ensure you add the environment variable on your local machine AND in your AWS Lambda Settings (via config.yaml)
@rjaus
rjaus / Keybase.md
Created October 4, 2017 19:30
Keybase verify

Keybase proof

I hereby claim:

  • I am rjaus on github.
  • I am rileyjames (https://keybase.io/rileyjames) on keybase.
  • I have a public key ASCD79Jgn_UAbYHwF0C1ut4ftgxZQmqZENy2iIQUcgM5UQo

To claim this, I am signing this object:

@rjaus
rjaus / about-xero.html
Last active November 12, 2018 08:34
about-xero
<h2>About Xero?</h2>
<p>Xero is world-leading online accounting software built for small business.</p>
<ul>
<li>Get a real-time view of your cashflow. Log in anytime, anywhere on your Mac, PC, tablet or phone to get a real-time view of your cash flow. It’s small business accounting software that’s simple, smart and occasionally magical.</li>
<li>Run your business on the go. Use our mobile app to reconcile, send invoices, or create expense claims - from anywhere.</li>
<li>Get paid faster with online invoicing. Send online invoices to your customers - and get updated when they’re opened.</li>
<li>Reconcile in seconds. Xero imports and categorises your latest bank transactions. Just click ok to reconcile.</li>
</ul>
<p>Find out more or try <a href="https://www.xero.com/" hreflang="en" media="all">Xero Accounting Software</a> for free.</p>