(events)
Work with events and the event stream.
Returns a paginated list of events that have occurred. Use the query parameters to page through results.
This is sometimes referred to as "the event stream."
import { Paddle } from "Paddle";
async function run() {
const sdk = new Paddle({
security: {
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
},
});
const result = await sdk.events.list({});
// Handle the result
console.log(result)
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.ListEventsRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
Promise<operations.ListEventsResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.ListEventsResponseBody | 401 | application/json |
errors.ListEventsEventsResponseBody | 500 | application/json |
errors.SDKError | 4xx-5xx | / |
Returns a list of event types.
The response is not paginated.
import { Paddle } from "Paddle";
async function run() {
const sdk = new Paddle({
security: {
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
},
});
const result = await sdk.events.listTypes();
// Handle the result
console.log(result)
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
Promise<operations.ListEventTypesResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.ListEventTypesResponseBody | 401 | application/json |
errors.ListEventTypesEventsResponseBody | 500 | application/json |
errors.SDKError | 4xx-5xx | / |