badge¶
-
class
eldonationtracker.api.badge.
Badge
(badge_code: str, badge_image_url: str, description: str, title: str, unlocked_date_utc: str)¶ Bases:
object
Achievement Badges associated with a Participant or Team.
For Donor Drive API information: https://github.com/DonorDrive/PublicAPI/blob/master/resources/badges.md
- Parameters
badge_code – A unique identifier for this badge.
badge_image_url – The URL for the image associated with this badge
description – The description of this badge
title – The title of this badge
unlocked_date_utc – The date this badge was unlocked by the Participant or Team
- Type
str
- Type
str
- Type
str
- Type
str
- Type
str
-
badge_code
: str¶
-
badge_image_url
: str¶
-
static
create_badge
(json_data: dict)¶ Create a badge based on the JSON data.
- Parameters
json_data – The JSON data for this badge.
- Type
dict
- Returns
a Badge object
-
description
: str¶
-
title
: str¶
-
unlocked_date_utc
: str¶