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

Function instantlyUrl

apps/sim/tools/instantly/utils.ts:29–40  ·  view source on GitHub ↗
(path: string, query?: Record<string, unknown>)

Source from the content-addressed store, hash-verified

27})
28
29export function instantlyUrl(path: string, query?: Record<string, unknown>): string {
30 const url = new URL(path, INSTANTLY_API_BASE_URL)
31
32 if (query) {
33 for (const [key, value] of Object.entries(query)) {
34 if (value === undefined || value === null || value === '') continue
35 url.searchParams.append(key, String(value))
36 }
37 }
38
39 return url.toString()
40}
41
42export function compactBody(values: Record<string, unknown>): Record<string, unknown> {
43 return filterUndefined(values)

Callers 15

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 1

toStringMethod · 0.45

Tested by

no test coverage detected