naystack - v1.9.9
    Preparing search index...

    Function getThreadsContainerStatus

    • Reads a media container's processing status. Image, video and carousel containers must reach FINISHED before they can be published.

      Parameters

      • token: string

        Threads access token.

      • id: string

        Container id from createThreadsContainer.

      Returns Promise<ContainerState | null>

      Promise of { status, error? }, or null if the status was unreadable.

      import { getThreadsContainerStatus } from "naystack/socials";

      const state = await getThreadsContainerStatus(accessToken, containerId);
      if (state?.status === "FINISHED") await publishThreadsContainer(accessToken, containerId);