autograder.api.users.tokens.delete

Delete a token.

 1"""
 2Delete a token.
 3"""
 4
 5import typing
 6
 7import autograder.api.common
 8import autograder.api.config
 9import autograder.model.config
10
11API_ENDPOINT: str = 'users/tokens/delete'
12API_WRITE: bool = True
13API_PARAMS: typing.List[autograder.api.config.APIParam] = [
14    autograder.api.config.PARAM_SERVER,
15    autograder.api.config.PARAM_USER_EMAIL,
16    autograder.api.config.PARAM_USER_PASS,
17
18    autograder.api.config.PARAM_TARGET_USER_OR_SELF,
19
20    autograder.api.config.PARAM_TOKEN_ID,
21]
22
23def send(config: autograder.model.config.Config, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
24    """ Send a request to the autograder. """
25
26    return autograder.api.common.make_api_request(API_ENDPOINT, config, API_PARAMS, write = API_WRITE, **kwargs)
API_ENDPOINT: str = 'users/tokens/delete'
API_WRITE: bool = True
def send(config: autograder.model.config.Config, **kwargs: Any) -> Dict[str, Any]:
24def send(config: autograder.model.config.Config, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
25    """ Send a request to the autograder. """
26
27    return autograder.api.common.make_api_request(API_ENDPOINT, config, API_PARAMS, write = API_WRITE, **kwargs)

Send a request to the autograder.