Whenever you're dealing with an client in your template, you're actually working with a Client object.


nameThe name of the client.
handleThe handle of the client.
enabledWhether the client is enabled or not.
typeThe type of client this is (oauth or credentials).
primaryColorThe primary brand color of the provider connected.
iconThe SVG icon of the client provider connected.
providerNameThe name of the client provider connected.


isConfigured()Whether the client provider has been configured.
isConnected()Whether the client provider has been connected and has a token. (OAuth clients only).
getToken()The access token for a client provider. (OAuth clients only).

Previous ← Fetching Data Next Client Type →

Get started with Consume

Available for Craft 4. Get it from the plugin store.