import { Client } from "https://deno.land/x/upstash_qstash@v0.4.0-canary.0/mod.ts";
Constructors
new
Client(config: ClientConfig)Properties
http: Requester
Methods
logs(req?: LogsRequest): Promise<GetLogsRespone>
Retrieve your logs.
The logs endpoint is paginated and returns only 100 logs at a time. If you want to receive more logs, you can use the cursor to paginate.
The cursor is a unix timestamp with millisecond precision
publish<R extends PublishRequest>(req: R): Promise<PublishResponse<R>>
publishJSON<R extends PublishJsonRequest = PublishJsonRequest>(req: R): Promise<PublishResponse<R>>
publishJSON is a utility wrapper around publish
that automatically serializes the body
and sets the Content-Type
header to application/json
.