//native
type Basistheory = {
apiKey: string;
};
/**
* Application Templates Get
* Application Templates Get
*/
export async function main(auth: Basistheory) {
const url = new URL(`https://api.basistheory.com/application-templates`);
const response = await fetch(url, {
method: "GET",
headers: {
"BT-API-KEY": auth.apiKey,
},
body: undefined,
});
if (!response.ok) {
const text = await response.text();
throw new Error(`${response.status} ${text}`);
}
return await response.json();
}
Submitted by hugo697 235 days ago