Skip to Content

whatsapp-mcp


whatsapp-mcp / meta/client / metaFetch

Function: metaFetch()

function metaFetch<Body>(options): Promise< | MetaApiFailure | MetaApiSuccess<Body>>;

Defined in: src/meta/client.ts:52 

Issue a Meta Graph API request with retries and typed-error mapping.

Type Parameters

Body

Body

expected shape of the success response body

Parameters

options

MetaRequestOptions

Returns

Promise< | MetaApiFailure | MetaApiSuccess<Body>>

MetaApiSuccess<Body> on success, MetaApiFailure on a final non-retryable failure. Callers translate failure into typed errors via mapMetaError.