naystack - v1.9.9
    Preparing search index...
    • Publishes a thread — a sequence of posts where each replies to the previous one.

      Parameters

      Returns Promise<string | undefined>

      Promise of the first published post's id.

      import { createThread, MetaMediaType } from "naystack/socials";

      const firstPostId = await createThread(accessToken, [
      "First post in thread",
      "Second post (reply to first)",
      { text: "Third, with a picture", media: { url: "https://cdn.example.com/3.jpg", type: MetaMediaType.Photo } },
      ]);