Sha256: e5ce26dd573c7451fc638ad56a3e08937b6388c5d50d55b67127319520565dd4
Contents?: true
Size: 782 Bytes
Versions: 1
Compression:
Stored size: 782 Bytes
Contents
# frozen_string_literal: true require_relative "../../response/subscribe_to_updates_response" require_relative "../../response/changed_users_response" module ONEAccess module API module Entitlement class UserSubscription < Base api_path "/entitlement/userSubscription" def self.subscribe(user_ids:) response = send_post("subscribeToUpdates", user_ids) Response::SubscribeToUpdatesResponse.from_json(response.body) end 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 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
oneaccess-0.1.9 | lib/oneaccess/api/entitlement/user_subscription.rb |