deepgram.clients.auth.v1.response
1# Copyright 2023-2024 Deepgram SDK contributors. All Rights Reserved. 2# Use of this source code is governed by a MIT license that can be found in the LICENSE file. 3# SPDX-License-Identifier: MIT 4 5from dataclasses import dataclass, field 6from dataclasses_json import config as dataclass_config 7 8from ...common import ( 9 BaseResponse, 10) 11 12@dataclass 13class GrantTokenResponse(BaseResponse): 14 """ 15 The response object for the authentication grant token endpoint. 16 """ 17 access_token: str = field( 18 metadata=dataclass_config(field_name='access_token'), 19 default="", 20 ) 21 expires_in: int = field( 22 metadata=dataclass_config(field_name='expires_in'), 23 default=30, 24 )
13@dataclass 14class GrantTokenResponse(BaseResponse): 15 """ 16 The response object for the authentication grant token endpoint. 17 """ 18 access_token: str = field( 19 metadata=dataclass_config(field_name='access_token'), 20 default="", 21 ) 22 expires_in: int = field( 23 metadata=dataclass_config(field_name='expires_in'), 24 default=30, 25 )
The response object for the authentication grant token endpoint.