Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 2.21 KB

README.md

File metadata and controls

55 lines (36 loc) · 2.21 KB

Analytics

(analytics)

Overview

Available Operations

  • retrieve - Retrieve analytics for a link, a domain, or the authenticated workspace.

retrieve

Retrieve analytics for a link, a domain, or the authenticated workspace. The response type depends on the event and type query parameters.

Example Usage

require 'dub'


s = ::OpenApiSDK::Dub.new
s.config_security(
  ::OpenApiSDK::Shared::Security.new(
    token: "DUB_API_KEY",
  )
)


req = ::OpenApiSDK::Operations::RetrieveAnalyticsRequest.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.analytics.retrieve(req)

if ! res.one_of.nil?
  # handle response
end

Parameters

Parameter Type Required Description
request ::OpenApiSDK::Operations::RetrieveAnalyticsRequest ✔️ The request object to use for the request.

Response

T.nilable(::OpenApiSDK::Operations::RetrieveAnalyticsResponse)