langchain_community.utilities.passio_nutrition_ai.ManagedPassioLifeAuth¶

class langchain_community.utilities.passio_nutrition_ai.ManagedPassioLifeAuth(subscription_key: str)[source]¶

Manages the token for the NutritionAI API.

Attributes

headers

Methods

__init__(subscription_key)

is_valid_now()

refresh_access_token()

Refresh the access token for the NutritionAI API.

Parameters

subscription_key (str) –

__init__(subscription_key: str)[source]¶
Parameters

subscription_key (str) –

is_valid_now() bool[source]¶
Return type

bool

refresh_access_token() None[source]¶

Refresh the access token for the NutritionAI API.

Return type

None