GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Windmill Hub
  • Discord
  • Discussions
  • Windmill
  • Login

This view

  • Original page
  • New address

GeezerVison is showing hub.windmill.dev — Get folders (SCIM) — formstack script | Windmill Hub

Back to Formstack integration
0

Get folders (SCIM)

by hugo697
Published Oct 17, 2025

Get folders using SCIM protocol

Script formstack Verified
Use in Windmill

The script

Submitted by hugo697 Bun
Verified 407 days ago
All edits
Permalink
1
//native
2
type Formstack = {
3
  token: string;
4
};
5
/**
6
 * /Folders
7
 *
8
 */
9
export async function main(
10
  auth: Formstack,
11
  count: string | undefined,
12
  filter: string | undefined,
13
  startIndex: string | undefined,
14
) {
15
  const url = new URL(`https://www.formstack.com/scim/Folders`);
16
  for (const [k, v] of [
17
    ["count", count],
18
    ["filter", filter],
19
    ["startIndex", startIndex],
20
  ]) {
21
    if (v !== undefined && v !== "" && k !== undefined) {
22
      url.searchParams.append(k, v);
23
    }
24
  }
25
  const response = await fetch(url, {
26
    method: "GET",
27
    headers: {
28
      Authorization: "Bearer " + auth.token,
29
    },
30
    body: undefined,
31
  });
32
  if (!response.ok) {
33
    const text = await response.text();
34
    throw new Error(`${response.status} ${text}`);
35
  }
36
  return await response.json();
37
}
38

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.