- list - Retrieve a list of events
Retrieve a paginated list of events for the authenticated workspace.
require 'dub'
s = ::OpenApiSDK::Dub.new
s.config_security(
::OpenApiSDK::Shared::Security.new(
token: "DUB_API_KEY",
)
)
req = ::OpenApiSDK::Operations::ListEventsRequest.new(
timezone: "America/New_York",
city: "New York",
device: "Desktop",
browser: "Chrome",
os: "Windows",
referer: "google.com",
referer_url: "https://dub.co/blog",
)
res = s.events.list(req)
if ! res.click_events.nil?
# handle response
end
Parameter | Type | Required | Description |
---|---|---|---|
request |
::OpenApiSDK::Operations::ListEventsRequest | ✔️ | The request object to use for the request. |