Method: PlatformAPI.connect
- Defined in:
- lib/platform-api/client.rb
.connect(api_key, options = nil) ⇒ Client
Get a Client configured to use HTTP Basic authentication.
20 21 22 23 24 25 26 |
# File 'lib/platform-api/client.rb', line 20 def self.connect(api_key, =nil) = () puts "OPTIONS", url = "https://:#{api_key}@#{options[:host]}" client = Heroics.client_from_schema(SCHEMA, url, ) Client.new(client) end |