Module: Hominid::Security

Included in:
API
Defined in:
lib/hominid/security.rb

Instance Method Summary collapse

Instance Method Details

#apikey_add(username, password) ⇒ Object

Add an API key to your account



10
11
12
# File 'lib/hominid/security.rb', line 10

def apikey_add(username, password)
  @chimpApi.call("apikeyAdd", username, password, @api_key)
end

#apikey_expire(username, password, api_key) ⇒ Object

Expire a specific API key



15
16
17
# File 'lib/hominid/security.rb', line 15

def apikey_expire(username, password, api_key)
  @chimpApi.call("apikeyExpire", username, password, api_key)
end

#apikeys(username, password, expired = false) ⇒ Object

Get a list of all API keys



5
6
7
# File 'lib/hominid/security.rb', line 5

def apikeys(username, password, expired = false)
  @chimpApi.call("apikeys", username, password, @api_key, expired)
end