Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
bcx / lib / bcx / launchpad / oauth.rb
Size: Mime:
module Bcx
  module Launchpad
    class OAuth < Rapidash::Client
      method :oauth

      extension :json
      encode_request_with :json

      raise_errors

      resource :authorization, class_name: "Bcx::Resources::Authorization"

      def initialize(options = {})
        options[:site]   ||= "https://launchpad.37signals.com"
        options[:uid]    ||= options[:client_id]
        options[:secret] ||= options[:client_secret]

        super(options)
      end
    end
  end
end