Sha256: 8fae6ffa361734f16c12cec5428f4819e1fb19516fa7193c2e828e97ac620ceb
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
module Xeroizer class PublicApplication < GenericApplication extend Forwardable def_delegators :client, :request_token, :authorize_from_request, :authorize_from_access public # Public appliations are authenticated via the Xero website via OAuth. AccessTokens are valid for 30 minutes # after authentication. To extend this time you must redirect the user to Xero's OAuth server again. # # @param [String] consumer_key consumer key/token from application developer (found at http://api.xero.com for your application) # @param [String] consumer_secret consumer secret from application developer (found at http://api.xero.com for your application) # @param [Hash] options other options to pass to the GenericApplication constructor # @return [PublicApplication] instance of PrivateApplication def initialize(consumer_key, consumer_secret, options = {}) client = OAuth.new(consumer_key, consumer_secret, options) super(client, options) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xeroizer-3-pre-beta-3.0.0.pre.beta | lib/xeroizer/public_application.rb |