Sha256: 08c8350bd9c8c5dd1fb8ced3587c6987c1826795fc208128546ebb3bf7fc5463
Contents?: true
Size: 688 Bytes
Versions: 2
Compression:
Stored size: 688 Bytes
Contents
module XeroGateway class PrivateApp < Gateway # # The consumer key and secret here correspond to those provided # to you by Xero inside the API Previewer. def initialize(consumer_key, consumer_secret, path_to_private_key, options = {}) options.merge!( :signature_method => 'RSA-SHA1', :private_key_file => path_to_private_key ) @xero_url = options[:xero_url] || "https://api.xero.com/api.xro/2.0" @payroll_url = options[:payroll_url] || "https://api.xero.com/payroll.xro/1.0" @client = OAuth.new(consumer_key, consumer_secret, options) @client.authorize_from_access(consumer_key, consumer_secret) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xero_gateway-2.7.0 | lib/xero_gateway/private_app.rb |
xero_gateway-2.6.0 | lib/xero_gateway/private_app.rb |