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

Function parseInstantlyResponse

apps/sim/tools/instantly/utils.ts:46–56  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

44}
45
46export async function parseInstantlyResponse(response: Response): Promise<unknown> {
47 const data = await parseJsonResponse(response)
48
49 if (!response.ok) {
50 throw new Error(
51 extractInstantlyError(data, `Instantly API request failed (${response.status})`)
52 )
53 }
54
55 return data
56}
57
58export function asRecord(value: unknown): JsonRecord {
59 return isRecordLike(value) ? value : {}

Callers 13

reply_to_email.tsFile · 0.90
list_lead_lists.tsFile · 0.90
delete_leads.tsFile · 0.90
get_lead.tsFile · 0.90
list_emails.tsFile · 0.90
patch_campaign.tsFile · 0.90
list_leads.tsFile · 0.90
create_campaign.tsFile · 0.90
create_lead.tsFile · 0.90

Calls 2

parseJsonResponseFunction · 0.70
extractInstantlyErrorFunction · 0.70

Tested by

no test coverage detected