Examples

Events

You can run the async code by importing AsyncQStash from qstash and awaiting the methods.

Get all events with pagination using cursor

Since there can be a large number of events, they are paginated. You can go through the results using the cursor.

from qstash import QStashclient = QStash("<QSTASH-TOKEN>")all_events = []cursor = Nonewhile True:    res = client.event.list(cursor=cursor)    all_events.extend(res.events)    cursor = res.cursor    if cursor is None:        break
Loading search…