MCPcopy Index your code
hub / github.com/simstudioai/sim / fetchUnsubscribe

Function fetchUnsubscribe

apps/sim/hooks/queries/unsubscribe.ts:18–24  ·  view source on GitHub ↗
(
  email: string,
  token: string,
  signal?: AbortSignal
)

Source from the content-addressed store, hash-verified

16}
17
18async function fetchUnsubscribe(
19 email: string,
20 token: string,
21 signal?: AbortSignal
22): Promise<UnsubscribeData> {
23 return requestJson(unsubscribeGetContract, { query: { email, token }, signal })
24}
25
26/**
27 * Validates an unsubscribe link and loads the recipient's current email preferences.

Callers 1

useUnsubscribeFunction · 0.85

Calls 1

requestJsonFunction · 0.90

Tested by

no test coverage detected