Workers
Retrieve a worker
client.Workers.Get(ctx, workerID, query) (*Worker, error)
GET/api/workers/{workerId}
Continue a worker
client.Workers.Continue(ctx, workerID, body) (*Worker, error)
POST/api/workers/{workerId}
Stream worker updates
client.Workers.StreamUpdates(ctx, workerID) (*string, error)
GET/api/workers/{workerId}/stream
Retrieve a worker email address
client.Workers.GetEmail(ctx, workerID) (*string, error)
GET/api/workers/{workerId}/email
Retrieve a worker file
client.Workers.GetFile(ctx, filePath, query) (*Response, error)
GET/api/workers/{workerId}/files/{filePath}
WorkersSchedules
Manage future and recurring worker tasks.
List worker schedules
client.Workers.Schedules.List(ctx, workerID) (*WorkerScheduleListResponse, error)
GET/api/workers/{workerId}/schedules
Create a worker schedule
client.Workers.Schedules.New(ctx, workerID, body) (*WorkerScheduleUnion, error)
POST/api/workers/{workerId}/schedules
Cancel a worker schedule
client.Workers.Schedules.Cancel(ctx, scheduleID, body) (*WorkerScheduleCancelResponse, error)
DELETE/api/workers/{workerId}/schedules/{scheduleId}