stripity_stripe v1.6.0 Stripe.Events

Main API for working with Events at Stripe. Through this API you can: -list/search events (last 30 days guaranteed to be available) -retrieve event from id -count number of events stored currently on stripe

https://stripe.com/docs/api/curl#event_object

Summary

Functions

Count events.

Example

Count events using given key.

Example

Retrieves a given Event with the specified ID. Returns 404 if not found.

Example

Retrieves a given Event with the specified ID using that key(account). Returns 404 if not found.

Example

Returns a list of events

Returns a list of events using given stripe key

Functions

count()

Count events.

Example

{:ok, count} = Stripe.Events.count
count(key)

Count events using given key.

Example

{:ok, count} = Stripe.Events.count key
get(id)

Retrieves a given Event with the specified ID. Returns 404 if not found.

Example

Stripe.Events.get "event_id"
get(key, id)

Retrieves a given Event with the specified ID using that key(account). Returns 404 if not found.

Example

{:ok, event} = Stripe.Events.get  key, "event_id"
list(starting_after, limit \\ 10)

Returns a list of events

Example

{:ok, events} = Stripe.Events.list "starting_after", limit // 10
list(key, starting_after, limit)

Returns a list of events using given stripe key

Example

{:ok, events} = Stripe.Events.list key, "starting_after", limit