RequestQueueClient
Hierarchy
- ResourceClient
- RequestQueueClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
addRequest
Parameters
request: Omit<RequestQueueClientRequestSchema, id>
options: RequestQueueClientAddRequestOptions = {}
Returns Promise<RequestQueueClientAddRequestResult>
batchAddRequests
Parameters
requests: Omit<RequestQueueClientRequestSchema, id>[]
options: RequestQueueClientBatchAddRequestWithRetriesOptions = {}
Returns Promise<RequestQueueClientBatchRequestsOperationResult>
batchDeleteRequests
delete
Returns Promise<void>
deleteRequest
Parameters
id: string
Returns Promise<void>
deleteRequestLock
Parameters
id: string
options: RequestQueueClientDeleteRequestLockOptions = {}
Returns Promise<void>
get
Returns Promise<undefined | RequestQueue>
getRequest
Parameters
id: string
Returns Promise<undefined | RequestQueueClientGetRequestResult>
listAndLockHead
listHead
Parameters
options: RequestQueueClientListHeadOptions = {}
Returns Promise<RequestQueueClientListHeadResult>
listRequests
Parameters
options: RequestQueueClientListRequestsOptions = {}
Returns Promise<RequestQueueClientListRequestsResult>
paginateRequests
https://docs.apify.com/api/v2#/reference/request-queues/request-collection/list-requests
Usage: for await (const { items } of client.paginateRequests({ limit: 10 })) { items.forEach((request) => console.log(request)); }
Parameters
options: RequestQueueClientPaginateRequestsOptions = {}
Returns RequestQueueRequestsAsyncIterable<RequestQueueClientListRequestsResult>
prolongRequestLock
Parameters
id: string
options: RequestQueueClientProlongRequestLockOptions
Returns Promise<RequestQueueClientProlongRequestLockResult>
update
Parameters
newFields: RequestQueueClientUpdateOptions
Returns Promise<RequestQueue>
updateRequest
Parameters
request: RequestQueueClientRequestSchema
options: RequestQueueClientAddRequestOptions = {}
Returns Promise<RequestQueueClientAddRequestResult>
https://docs.apify.com/api/v2#/reference/request-queues/request-collection/add-request