Skip to main content

Module tmc

Module tmc 

Source

Structsยง

NewUserInfo
TMCUser
TMCUserField
User fields are optional data on the TMC side: a user who never filled in their profile (or a TMC instance without the field definitions) serializes them as null or omits them entirely, so deserialization must not require them.
TMCUserResponse
TmcClient
TmcDeleteAccountResponse ๐Ÿ”’
TmcUserInfo

Enumsยง

TMCRequestAuth ๐Ÿ”’
TmcAccountDeletion
What a delete left behind on the TMC side. Both values mean the upstream account is gone and the local one may follow.

Constantsยง

DELETE_ACCOUNT_TIMEOUT ๐Ÿ”’
Deliberately above tmc.mooc.fiโ€™s own 120 s request timeout: giving up earlier would abandon a delete that upstream then completes, leaving the account gone there and present here.
TMC_API_URL ๐Ÿ”’

Functionsยง

format_tmc_errors ๐Ÿ”’
parse_tmc_error_response ๐Ÿ”’