Sha256: 93618bb90e7ac85daa159233f08a4583952996daad79516247b1a48543f829b2
Contents?: true
Size: 717 Bytes
Versions: 1
Compression:
Stored size: 717 Bytes
Contents
module Bcx module Client class OAuth < Rapidash::Client method :oauth extension :json encode_post_data_with :json raise_errors resource :projects, class_name: 'Bcx::Resources::Project' resource :todolists, class_name: 'Bcx::Resources::Todolist' resource :people, class_name: 'Bcx::Resources::Person' def initialize(options = {}) @account = Bcx.configuration.account @api_version = Bcx.configuration.api_version options[:site] = "https://basecamp.com/#{@account}/api/#{@api_version}" options[:uid] ||= options[:client_id] options[:secret] ||= options[:client_secret] super(options) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bcx-0.1.0 | lib/bcx/client/oauth.rb |