Skip to main content
Go to Latest
class Client
import { Client } from "https://deno.land/x/upstash_qstash@v0.4.0-canary.0/mod.ts";

Constructors

new
Client(config: ClientConfig)

Properties

readonly
endpoints: Endpoints

Access the endpoint API.

Create, read, update or delete endpoints.

http: Requester
readonly
messages: Messages

Access the message API.

Read or cancel messages.

readonly
schedules: Schedules

Access the schedule API.

Read or delete schedules.

readonly
topics: Topics

Access the topic API.

Create, read, update or delete topics.

Methods

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.