@ubstream/ubstream-node-client-sdk / Exports / RequestsClient
Class: RequestsClient
This class allows to inspect the status of a request.
Hierarchy
AbstractClient
↳ RequestsClient
Table of contents
Methods
Methods
getRequestStatus
▸ getRequestStatus(requestId
): Promise
<IPublicRequestStatusResponseData
>
Parameters
Name | Type | Description |
---|---|---|
requestId | string | The uuid of the targeted request. |
Returns
Promise
<IPublicRequestStatusResponseData
>
Promise object representing the request status.
Summary
Inspect request status from the requestId returned by an action. (completed, pending or failed)
Example
const status = await client.requests.getRequestStatus("request_id");