igpapi — Instagram private API Simulator for Node.js (API reference) 4.14.0
    Preparing search index...

    Interface PostingNewPostActions

    The actions of PostingNewPostScreen: the methods you call on its handle while the screen is open.

    interface PostingNewPostActions {
        share: <Self extends ScreenHandle>(
            this: Self,
            ...args: [options: PostingNewPostOptions],
        ) => Effect<
            {
                code?: string;
                id: string;
                mediaIds: readonly string[];
                raw: ActionRaw;
                status: string;
            },
            | IgApiError
            | RequestError
            | ParseError
            | TransportError
            | PostingPhotoEncodeError
            | ScreenEnterConcurrentError
            | ScreenDataError
            | PostingMediaNotInProcessError,
            never,
        >;
    }
    Index

    Properties

    Properties

    share: <Self extends ScreenHandle>(
        this: Self,
        ...args: [options: PostingNewPostOptions],
    ) => Effect<
        {
            code?: string;
            id: string;
            mediaIds: readonly string[];
            raw: ActionRaw;
            status: string;
        },
        | IgApiError
        | RequestError
        | ParseError
        | TransportError
        | PostingPhotoEncodeError
        | ScreenEnterConcurrentError
        | ScreenDataError
        | PostingMediaNotInProcessError,
        never,
    >

    Taps Share: publishes the post. The creation screens close (the screen the flow started from is in front again), the photo is uploaded (a carousel's children already are), the post is configured and the post-share banner is asked for. options carries what you decide on this screen, the caption. Answers the published post: its id, whether the server finished it, and its media ids.