Module code_giveaways

Source
Expand description

Controllers for requests starting with /api/v0/course-material/code-giveaways.

Functionsยง

_add_routes
claim_code_from_code_giveaway ๐Ÿ”’
POST /api/v0/course-material/code-giveaways/:id/claim - Claim a code from a code giveaway. If user has not completed the course module that is a requirement for the code, returns an error.
get_giveaway_status ๐Ÿ”’
GET /api/v0/course-material/code-giveaways/:id/status - Returns information about a code giveaway.