megalodon
    Preparing search index...

    Function default

    • Get client for each SNS according to megalodon interface.

      Parameters

      • sns: "pleroma" | "mastodon" | "friendica" | "firefish" | "gotosocial" | "pixelfed"

        Name of your SNS, mastodon, pleroma, firefish, gotosocial, or pixelfed.

      • baseUrl: string

        hostname or base URL.

      • accessToken: null | string = null

        access token from OAuth2 authorization

      • userAgent: null | string = null

        UserAgent is specified in header on request.

      Returns MegalodonInterface

      Client instance for each SNS you specified.