MCPcopy
hub / github.com/simstudioai/sim / buildCreateFormUrl

Function buildCreateFormUrl

apps/sim/tools/google_forms/utils.ts:57–65  ·  view source on GitHub ↗
(unpublished?: boolean)

Source from the content-addressed store, hash-verified

55}
56
57export function buildCreateFormUrl(unpublished?: boolean): string {
58 const url = new URL(`${FORMS_API_BASE}/forms`)
59 if (unpublished) {
60 url.searchParams.set('unpublished', 'true')
61 }
62 const finalUrl = url.toString()
63 logger.debug('Built Google Forms create form URL', { finalUrl })
64 return finalUrl
65}
66
67export function buildBatchUpdateUrl(formId: string): string {
68 const finalUrl = `${FORMS_API_BASE}/forms/${encodeURIComponent(formId)}:batchUpdate`

Callers 1

create_form.tsFile · 0.90

Calls 3

debugMethod · 0.80
setMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected