Skip to content

Latest commit

 

History

History
62 lines (46 loc) · 3.02 KB

README.md

File metadata and controls

62 lines (46 loc) · 3.02 KB

Events

(events)

Overview

Available Operations

  • list - Retrieve a list of events

list

Retrieve a paginated list of events for the authenticated workspace.

Example Usage

from dub import Dub

with Dub(
    token="DUB_API_KEY",
) as s:
    res = s.events.list(request={
        "timezone": "America/New_York",
        "city": "New York",
        "device": "Desktop",
        "browser": "Chrome",
        "os": "Windows",
        "referer": "google.com",
        "referer_url": "https://dub.co/blog",
    })

    if res is not None:
        # handle response
        pass

Parameters

Parameter Type Required Description
request operations.ListEventsRequest ✔️ The request object to use for the request.
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

operations.ListEventsResponseBody

Errors

Error Type Status Code Content Type
errors.BadRequest 400 application/json
errors.Unauthorized 401 application/json
errors.Forbidden 403 application/json
errors.NotFound 404 application/json
errors.Conflict 409 application/json
errors.InviteExpired 410 application/json
errors.UnprocessableEntity 422 application/json
errors.RateLimitExceeded 429 application/json
errors.InternalServerError 500 application/json
errors.SDKError 4XX, 5XX */*