Sha256: a4ce335108577f5fabbcf9331d9244b55da279e62576a5b99453158af10300f6

Contents?: true

Size: 377 Bytes

Versions: 4

Compression:

Stored size: 377 Bytes

Contents

require 'rubygems'
require 'pp'

require_relative '../lib/xero_gateway.rb'

XERO_CONSUMER_KEY    = "YOUR CONSUMER KEY"
XERO_CONSUMER_SECRET = "YOUR CONSUMER SECRET"
PATH_TO_PRIVATE_KEY  = "/path/to/privatekey.pem"

gateway = XeroGateway::PrivateApp.new(
  XERO_CONSUMER_KEY,
  XERO_CONSUMER_SECRET,
  PATH_TO_PRIVATE_KEY)

# Example API Call
pp gateway.get_contacts.contacts


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xero_gateway-2.7.0 examples/private_app.rb
xero_gateway-2.6.0 examples/private_app.rb
xero_gateway-2.5.0 examples/private_app.rb
xero_gateway-2.4.0 examples/private_app.rb