GetDeliveries
POST/twirp/ttab.newswire.Delivery/GetDeliveries
GetDeliveries is used to fetch deliveries to the destination. Returned items are in ascending ID order, starting from the first item for the destination if no cursor is provided. This method can be used regardless of the destination type.
Request
- application/json
Body
Possible values: [BODY_FORMAT_UNSPECIFIED, BODY_FORMAT_ALL, BODY_FORMAT_TEXT, BODY_FORMAT_HTML5, BODY_FORMAT_RICH_HTML5]
Cursor used to paginate through deliveries.
Destination to get deliveries for.
MaxWaitSec can be specified to activate long-poll behaviour when tailing the end of the deliveries.
Responses
- 200
- default
Method response
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
items object[]
Items included in this batch of delivery items.
annotations object
DeliveryTags for an item.
Cursor to use to start a GetDeliveries request at this position.
Doc is the TTNINJS document as a JSON string.
Possible values: [CONTENT_UNSPECIFIED, CONTENT_NEWS, CONTENT_EDITORIAL_INFO, CONTENT_PRESS_RELEASES]
Next is the cursor to use for the next request to GetDeliveries.
{
"items": [
{
"annotations": {
"delivery_tags": [
"string"
]
},
"cursor": "string",
"doc": "string",
"type": "CONTENT_UNSPECIFIED"
}
],
"next": "string"
}