Class SocialAPIInternal

The class that encapsulates the social API

Constructors

Properties

Methods

Constructors

Properties

api: API
contacts: {
    list: (() => Promise<Contact[]>);
    subscribe: ((listener) => Promise<(() => Promise<BazaarMessage>)>);
} = ...

Contacts

Type declaration

Methods

  • Gets the user info for a given ID or handle.

    Parameters

    • query: {
          handle?: string;
          userId?: string;
      } = {}

      The ID or handle of the user, defaults to logged in user's ID.

      • Optional handle?: string
      • Optional userId?: string

    Returns Promise<User>

  • Opens the social modal

    Parameters

    • withId: ((userId) => void) = null
        • (userId): void
        • Parameters

          • userId: string

          Returns void

    • onClose: (() => void) = null
        • (): void
        • Returns void

    Returns void