You can use the API to get or set event information.
| Field | Type | Description |
|---|
id | String | The unique identifier for the event which is given by Pingstreams. |
name | String | The event name. You can find the standard Pingstreams events here |
project_user | Object | The user who creates the event. |
attributes | Object | The custom attributes which are set for the event. |
createdAt | String | The time (ISO-8601 date string) when the event was created. |
updatedAt | String | The time (ISO-8601 date string) when the event was updated. |
createdBy | String | The unique identifier of the row creator |
id_project | String | The unique identifier of the project |
GET https://api.pingstreams.com/v3/:project_id/events
| Parameter | Type | Description |
|---|
project_id | string | the Project Id is a unique code assigned to your project when you create it in Pingstreams. |
| Parameter | Type | Description |
|---|
sortField | string | what field to sort the results by. |
direction | string | sort direction: 1 or -1. Return the results in ascending or descending order. defaults to desc |
page | number | what page of results to fetch. defaults to first page. |
| Header | Type | Description |
|---|
Authorization | string | authorization token. Basic Auth or JWT |
GET https://api.pingstreams.com/v3/:project_id/events/:id
| Parameter | Type | Description |
|---|
id | string | the event identifier |
project_id | string | The project_id is a unique code assigned to your project when you create it in Pingstreams |
| Header | Type | Description |
|---|
Authorization | string | authorization token. Basic Auth or JWT |
Content-Type | string | use “application/json” value |
POST https://api.pingstreams.com/v3/:project_id/events
With this endpoint you can fire a custom event. You event name should be event.emit.EVENT_NAME to correctly identify your custom event. You can find the standard Pingstreams events here.
| Parameter | Type | Description |
|---|
project_id | string | The project_id is a unique code assigned to your project when you create it in Pingstreams |
| Header | Type | Description |
|---|
Authorization | string | authorization token. Basic Auth or JWT |
Content-Type | string | use “application/json” value |
| Field | Type | Description |
|---|
name | string | the event name |
attributes | object | The event custom attributes |