Sha256: 95a1f779c6c4db498466406ef3a687fbaa5c1a907de9d38b99536d55c6de845e
Contents?: true
Size: 810 Bytes
Versions: 4
Compression:
Stored size: 810 Bytes
Contents
# ## HTTP Client # # Provides a client to access the Basecamp Next API using HTTP authentication # # # Example: # # client = Bcx::Client::HTTP.new(login: 'username', password: 'secret') # module Bcx module Client class HTTP < Rapidash::Client method :http extension :json encode_request_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 self.class.site("https://basecamp.com/#{@account}/api/#{@api_version}/") super(options) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bcx-1.0.0 | lib/bcx/client/http.rb |
bcx-0.4.0 | lib/bcx/client/http.rb |
bcx-0.3.0 | lib/bcx/client/http.rb |
bcx-0.2.1 | lib/bcx/client/http.rb |