Method: TreasureData::Client.authenticate
- Defined in:
- lib/td/client.rb
.authenticate(user, password, opts = {}) ⇒ Client
12 13 14 15 16 |
# File 'lib/td/client.rb', line 12 def self.authenticate(user, password, opts={}) api = API.new(nil, opts) apikey = api.authenticate(user, password) new(apikey) end |