Module: PlentyClient::Authorization
- Extended by:
- Endpoint, Request
- Defined in:
- lib/plenty_client/authorization.rb
Constant Summary
collapse
- AUTH_USER =
'/authorized_user'.freeze
- AUTH_USER_WITH_UI_CONFIG =
'/user/authorized_user_with_ui_config'.freeze
Class Method Summary
collapse
Methods included from Endpoint
build_endpoint, routes
Methods included from Request
delete, get, patch, post, put, request
Class Method Details
.list(headers = {}, &block) ⇒ Object
10
11
12
|
# File 'lib/plenty_client/authorization.rb', line 10
def list( = {}, &block)
get(build_endpoint(AUTH_TOKEN), , &block)
end
|
.list_with_ui_config(headers = {}, &block) ⇒ Object
14
15
16
|
# File 'lib/plenty_client/authorization.rb', line 14
def list_with_ui_config( = {}, &block)
get(build_endpoint(AUTH_USER_WITH_UI_CONFIG), , &block)
end
|