module PlentyClient::Authentication

Constants

AUTH_CLIENT
AUTH_LOGIN
AUTH_LOGOUT
AUTH_REFRESH
AUTH_TOKEN

Public Class Methods

access_token(headers = {}, &block) click to toggle source
# File lib/plenty_client/authentication.rb, line 15
def access_token(headers = {}, &block)
  get(build_endpoint(AUTH_TOKEN), headers, &block)
end
client_access_token(body = {}) click to toggle source
# File lib/plenty_client/authentication.rb, line 31
def client_access_token(body = {})
  post(build_endpoint(AUTH_CLIENT), body)
end
login(body = {}) click to toggle source
# File lib/plenty_client/authentication.rb, line 19
def login(body = {})
  post(build_endpoint(AUTH_LOGIN), body)
end
login_refresh(body = {}) click to toggle source
# File lib/plenty_client/authentication.rb, line 23
def login_refresh(body = {})
  post(build_endpoint(AUTH_REFRESH), body)
end
logout(body = {}) click to toggle source
# File lib/plenty_client/authentication.rb, line 27
def logout(body = {})
  post(build_endpoint(AUTH_LOGOUT), body)
end