Del via


AccessToken Class

Represents an OAuth access token.

Create new instance of AccessToken(token, expires_on)

Inheritance
builtins.tuple
AccessToken

Constructor

AccessToken(token: str, expires_on: int)

Parameters

Name Description
_cls
Required
token
Required
expires_on
Required

Methods

count

Return number of occurrences of value.

index

Return first index of value.

Raises ValueError if the value is not present.

count

Return number of occurrences of value.

count(value, /)

Positional-Only Parameters

Name Description
value
Required

index

Return first index of value.

Raises ValueError if the value is not present.

index(value, start=0, stop=9223372036854775807, /)

Positional-Only Parameters

Name Description
value
Required
start
Default value: 0
stop
Default value: 9223372036854775807

Attributes

expires_on

The token's expiration time in Unix time.

expires_on: int

token

The token string.

token: str