Function default

  • Get client for each SNS according to megalodon interface.

    Parameters

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

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

    • 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.