Function getBadgeById

  • Retrieve a badge with given ID (if it exists).

    Badge is identified by its stringified ObjectID.

    Usage

    const bagdeId: string = "5f5e555d5a578b6";
    const badge: Badge = await sdk.getBadgeById({ badgeId });

    Parameters

    • params: {
          badgeId: string;
      }
      • badgeId: string

        ID of the badge to fetch.

    Returns Promise<Badge>

Generated using TypeDoc