Function default

  • Get client for each SNS according to megalodon interface.

    Returns

    Client instance for each SNS you specified.

    Parameters

    • sns: "misskey" | "mastodon" | "pleroma"

      Name of your SNS, mastodon or pleroma.

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

    • proxyConfig: false | ProxyConfig = false

      Proxy setting, or set false if don't use proxy.

    Returns MegalodonInterface

Generated using TypeDoc