naystack - v1.9.9
    Preparing search index...

    Variable getThreadsDataConst

    getThreadsData: (
        token: string,
        path: string,
        options?: GraphRequestOptions,
    ) => Promise<T & GraphError | null> = client.request

    Calls the Threads Graph API directly — the escape hatch for endpoints this module doesn't wrap. The Instagram counterpart is getInstagramData; see it for the POST-via-params convention and an example.

    Type Declaration

      • (
            token: string,
            path: string,
            options?: GraphRequestOptions,
        ): Promise<T & GraphError | null>
      • Parameters

        • token: string

          Threads access token.

        • path: string

          API path, relative to the versioned root (e.g. "me/threads").

        • Optionaloptions: GraphRequestOptions

          GraphRequestOptions — params (query), method, body.

        Returns Promise<T & GraphError | null>

        Promise of (T & GraphError) | null — check .error before reading T.