Class: Stripe::V2::Billing::MeterEventSessionService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::V2::Billing::MeterEventSessionService
- Defined in:
- lib/stripe/services/v2/billing/meter_event_session_service.rb
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Object
Creates a meter event session to send usage on the high-throughput meter event stream.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#create(params = {}, opts = {}) ⇒ Object
Creates a meter event session to send usage on the high-throughput meter event stream. Authentication tokens are only valid for 15 minutes, so you will need to create a new meter event session when your token expires.
9 10 11 12 13 14 15 16 17 |
# File 'lib/stripe/services/v2/billing/meter_event_session_service.rb', line 9 def create(params = {}, opts = {}) request( method: :post, path: "/v2/billing/meter_event_session", params: params, opts: opts, base_address: :api ) end |