K2
K2Streams
List K2 streams
client.k2.streams.list(StreamListParams { account_id, name, page, per_page } params, RequestOptionsoptions?): V4PagePaginationArray<StreamListResponse { id, created_at, endpoint, 5 more } >
GET/accounts/{account_id}/k2/streams
Get K2 stream
client.k2.streams.get(stringstreamID, StreamGetParams { account_id } params, RequestOptionsoptions?): StreamGetResponse { id, created_at, endpoint, 5 more }
GET/accounts/{account_id}/k2/streams/{stream_id}
Create K2 stream
client.k2.streams.create(StreamCreateParams { account_id, name, http, 2 more } params, RequestOptionsoptions?): StreamCreateResponse { id, created_at, endpoint, 5 more }
POST/accounts/{account_id}/k2/streams
Update K2 stream
client.k2.streams.update(stringstreamID, StreamUpdateParams { account_id, http, retention_seconds, worker_binding } params, RequestOptionsoptions?): StreamUpdateResponse { id, created_at, endpoint, 5 more }
PATCH/accounts/{account_id}/k2/streams/{stream_id}
Delete K2 stream
client.k2.streams.delete(stringstreamID, StreamDeleteParams { account_id } params, RequestOptionsoptions?): StreamDeleteResponse
DELETE/accounts/{account_id}/k2/streams/{stream_id}
K2StreamsSubscriptions
List K2 stream subscriptions
client.k2.streams.subscriptions.list(stringstreamID, SubscriptionListParams { account_id } params, RequestOptionsoptions?): SinglePage<SubscriptionListResponse { id, created_at, lag, 3 more } >
GET/accounts/{account_id}/k2/streams/{stream_id}/subscriptions