Liking cljdoc? Tell your friends :D

stripe-clojure.v2.billing.meter-event-session

V2 Billing Meter Event Session API.

Meter event sessions provide authentication tokens for high-throughput meter event streaming. A session token is valid for a limited time and can be used to send meter events without per-request authentication.

Stripe docs: https://docs.stripe.com/api/v2/billing/meter_event_session

V2 Billing Meter Event Session API.

Meter event sessions provide authentication tokens for high-throughput
meter event streaming. A session token is valid for a limited time and
can be used to send meter events without per-request authentication.

Stripe docs: https://docs.stripe.com/api/v2/billing/meter_event_session
raw docstring

create-meter-event-sessionclj

(create-meter-event-session stripe-client)
(create-meter-event-session stripe-client params)
(create-meter-event-session stripe-client params opts)

Creates a meter event session for high-throughput event streaming.

The session provides an authentication token that can be used for sending meter events without per-request API key authentication. This is useful for high-volume usage tracking scenarios.

Parameters:

  • stripe-client: The Stripe client instance
  • params: Optional session parameters (currently no parameters supported)
  • opts: Optional request options

Returns: A meter event session object containing:

  • :authentication_token - Token for authenticating meter event requests
  • :expires_at - Unix timestamp when the session expires
  • :created - Unix timestamp when the session was created

Example: (create-meter-event-session client)

Usage with the streaming endpoint: (let [session (create-meter-event-session client)] ;; Use session's authentication_token for streaming meter events (:authentication_token session))

Creates a meter event session for high-throughput event streaming.

The session provides an authentication token that can be used for
sending meter events without per-request API key authentication.
This is useful for high-volume usage tracking scenarios.

Parameters:
- stripe-client: The Stripe client instance
- params: Optional session parameters (currently no parameters supported)
- opts: Optional request options

Returns:
A meter event session object containing:
- :authentication_token - Token for authenticating meter event requests
- :expires_at - Unix timestamp when the session expires
- :created - Unix timestamp when the session was created

Example:
(create-meter-event-session client)

Usage with the streaming endpoint:
(let [session (create-meter-event-session client)]
  ;; Use session's authentication_token for streaming meter events
  (:authentication_token session))
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close