Retrieves a list of timeline messages associated with a specified gateway account ID.
limit | integer [ 0 .. 1000 ] Limits the number of collection items to be returned. |
offset | integer >= 0 Specifies the starting point within the collection of items to be returned. |
filter | string Filters the collection items. This field requires
a special format. Use For more information, see Using filter with collections. |
sort | Array of strings Sorts and orders the collection of items. To sort in descending
order, prefix with |
q | string Use this field to perform a partial search of text fields. |
List of gateway account timeline messages retrieved.
Unauthorized access. Invalid credentials used.
Access forbidden.
// all parameters are optional except for the `id` const firstCollection = await api.gatewayAccounts .getAllTimelineMessages({id: 'my-gateway'}); // alternatively you can specify one or more of them const params = {id: 'my-gateway', limit: 20, offset: 100}; const secondCollection = await api.gatewayAccounts.getAllTimelineMessages(params); // access the collection items, each item is a Member secondCollection.items .forEach(message => console.log(message.fields.eventType));
[- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "type": "gateway-account-created",
- "triggeredBy": "rebilly",
- "message": "string",
- "extraData": {
- "actions": [
- {
- "action": "resend-email"
}
], - "tables": [
- {
- "type": "list",
- "title": "string",
- "footer": "string"
}
], - "author": {
- "userFullName": "string",
- "userId": "string"
}, - "mentions": {
- "@test@mail.com": "userId-1"
}, - "links": [
- {
- "resourceType": "kyc-document",
- "resourceId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "placeholder": "KYC document",
}
]
}, - "occurredTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}
]