Class: ONEAccess::API::V1_1::Entitlement::UserSubscription
- Inherits:
-
Base
- Object
- ApiBase
- Base
- ONEAccess::API::V1_1::Entitlement::UserSubscription
show all
- Defined in:
- lib/oneaccess/api/v1_1/entitlement/user_subscription.rb
Class Method Summary
collapse
Methods inherited from ApiBase
api_url, resource_api_path, send_get, send_post
Class Method Details
.changed_users(from_date: nil) ⇒ Object
19
20
21
22
23
24
|
# File 'lib/oneaccess/api/v1_1/entitlement/user_subscription.rb', line 19
def self.changed_users(from_date: nil)
params = { dateFrom: from_date }.reject { |_, v| v.nil? }
response = send_get("subscribeToUpdates/changedUsers/getList", params)
Response::ChangedUsersResponse.from_json(response.body)
end
|
.subscribe(user_ids:) ⇒ Object
13
14
15
16
17
|
# File 'lib/oneaccess/api/v1_1/entitlement/user_subscription.rb', line 13
def self.subscribe(user_ids:)
response = send_post("subscribeToUpdates", user_ids)
Response::SubscribeToUpdatesResponse.from_json(response.body)
end
|