Table of Contents

Method FromApiKey

Namespace
MailFathom.AI.Providers
Assembly
MailFathom.AI.dll

FromApiKey(string, IDisposable?)

Builds a credential that presents a provider-issued key.

public static ProviderEndpointCredential FromApiKey(string apiKey, IDisposable? resolvedMaterial)

Parameters

apiKey string

The resolved key.

resolvedMaterial IDisposable

The secret material the key was read from, released when this credential is, or null when the caller holds none.

Returns

ProviderEndpointCredential

The credential.

Exceptions

ArgumentException

Thrown when the key is blank.