SDK for interacting with the User API documented at developer.domo.com

Hierarchy

  • UserClient

Constructors

Methods

Constructors

Methods

  • Parameters

    • limit: number = 50
    • offset: number = 0
    • includeDetails: boolean = false
    • timeout: number | Promise<number> = 0

    Returns Promise<Response<User[]>>

  • Gets a user's avatar image from /domo/avatars/v2/USER/{key}. Resolves with the image as a Blob.

    Parameters

    • key: string

      The user id

    • size: AvatarSizes = AvatarSizes.medium

      The host never errors on size, but only AvatarSizes.small (100) and AvatarSizes.xLarge (600) return an image at that size. AvatarSizes.medium (300) is the host's own fallback, so any other value, including large, scale400 and scale1920, silently returns that same 300x300 image instead.

    • timeout: number | Promise<number> = 0

      Request timeout in milliseconds

    • options: AvatarOptions = {}

      Color and text for the generated avatar shown when the user has no picture. Omitted values are not sent.

    Returns any

  • Parameters

    • id: number
    • includeDetails: boolean = false
    • timeout: number | Promise<number> = 0

    Returns Promise<Response<User>>

Generated using TypeDoc