Skip to content

Token Request

nexthink_api.Models.NxtTokenRequest

Bases: BaseModel

Model for an OAuth Authentication request on the Nexthink API.

Attributes

data (Dict[str, str]):
    Header for requesting the Token

data: Dict[str, str] = Field(default={'grant_type': 'client_credentials', 'scope': 'service:integration'}, frozen=True) class-attribute instance-attribute

get_request_header() -> dict

Return the form payload for requesting the token.

Returns
dict(str, str):
    Form payload for requesting the Token