Module: Shutterstock::API::Auth

Includes:
Util, Configurable
Included in:
Client
Defined in:
lib/shutterstock/api/auth.rb

Constant Summary collapse

BASE_PATH =
'auth'

Constants included from Util

Util::ENDPOINT, Util::FORMAT

Instance Attribute Summary

Attributes included from Configurable

#api_key, #api_username, #email, #password, #username

Instance Method Summary collapse

Methods included from Configurable

#configure, #credentials, keys

Methods included from Util

#call, #call_with_auth_token

Instance Method Details

#customer(options = {}) ⇒ Object



10
11
12
# File 'lib/shutterstock/api/auth.rb', line 10

def customer(options = {})
  call([BASE_PATH, 'customer'], :post, {username: credentials[:username], password: credentials[:password]}.merge(options))
end