Method: M2X::Client::Key.list

Defined in:
lib/m2x/key.rb

.list(client, params = {}) ⇒ Object

Retrieve list of keys associated with the user account.

m2x.att.com/developer/documentation/v2/keys#List-Keys



13
14
15
16
17
# File 'lib/m2x/key.rb', line 13

def list(client, params={})
  res = client.get(PATH, params)

  res.json["keys"].map{ |atts| new(client, atts) } if res.success?
end