Sha256: 12f2d239e6c050e54856966fc3ccbf2edc73b5a324c8d181bde016d796527d95
Contents?: true
Size: 610 Bytes
Versions: 32
Compression:
Stored size: 610 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" @client = OAuth.new(consumer_key, consumer_secret, options) @client.authorize_from_access(consumer_key, consumer_secret) end end end
Version data entries
32 entries across 32 versions & 3 rubygems