client.services.list_tokens
A method of the Services endpoint.
- list_tokens(id: int) ListResponse
List tokens
API URL:
GET /services/{id}/tokensimport civis client = civis.APIClient() response = client.services.list_tokens(...)
- Parameters:
- idint
The ID of the service.
- Returns:
civis.ListResponse- idint
The ID of the token.
- namestr
The name of the token.
- user
civis.Response - idint
The ID of this user.
- namestr
This user’s name.
- usernamestr
This user’s username.
- initialsstr
This user’s initials.
- onlinebool
Whether this user is online.
- user
- machine_tokenbool
If true, this token is not tied to a particular user.
- expires_atstr (date-time)
The date and time when the token expires.
- created_atstr (time)
The date and time when the token was created.