15 try {
16 const fal = createFalClient({
17 proxyUrl: "/api/fal/proxy",
18 });
19
139 }
140
141 if (url.pathname === "/api/fal/proxy") {
142 return falProxyRequest(req);
143 }
1Simple API wrapper for sending a message over XMPP to any Jabber ID on the federated network.
2
3```js
1export default async function sendxmpp(target: string, body: string) {
2 await fetch("https://singpolyma-sendxmppapi.web.val.run", {
3 method: "POST",
4 body: JSON.stringify({ target, body })
11[](https://www.val.town/v/stevekrouse/blob_admin_app/fork)
12
13It uses [basic authentication](https://www.val.town/v/pomdtr/basicAuth) with your [Val Town API Token](https://www.val.town/settings/api) as the password (leave the username field blank).
14
15# TODO
2import { scrapeMovie, scrapeShow } from "https://esm.town/v/temptemp/primewire";
3import {
4 primewireApiKey,
5 primewireBase,
6} from "https://raw.githubusercontent.com/Ciarands/mw-providers/dev/src/providers/sources/primewire/common.ts";
60}
61async function getMeta(imdbId: string): Promise<Meta> {
62 const searchResult = await fetch(`${primewireBase}/api/v1/show?key=${primewireApiKey}&imdb_id=${imdbId}`);
63 return await searchResult.json() as Meta;
64}
157 <title>Solana Transaction Code Generator</title>
158 <meta name="viewport" content="width=device-width, initial-scale=1">
159 <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap" rel="stylesheet">
160 <style>${css}</style>
161 </head>
1Simple API for sending a message over XMPP to any Jabber ID on the federated network.
2
3For a wrapper to use in vals see https://www.val.town/v/singpolyma/sendxmpp
4
5```js
6await fetch("https://singpolyma-sendxmppapi.web.val.run", {
7 method: "POST",
8 body: JSON.stringify({ target: "someone@example.com", body: "Hello!" })
421 if (url.pathname === "/create-checkout-session" && req.method === "POST") {
422 const stripe = new Stripe(Deno.env.get("STRIPE_VALTOWN_SECRET_KEY"), {
423 apiVersion: "2022-11-15",
424 });
425
460
461 const stripe = new Stripe(Deno.env.get("STRIPE_VALTOWN_SECRET_KEY"), {
462 apiVersion: "2022-11-15",
463 });
464
421 if (url.pathname === "/create-checkout-session" && req.method === "POST") {
422 const stripe = new Stripe(Deno.env.get("STRIPE_VALTOWN_SECRET_KEY"), {
423 apiVersion: "2022-11-15",
424 });
425
460
461 const stripe = new Stripe(Deno.env.get("STRIPE_VALTOWN_SECRET_KEY"), {
462 apiVersion: "2022-11-15",
463 });
464
1Simple helper for sending a message over XMPP. For an API that doesn't require your own bot setup see https://www.val.town/v/singpolyma/sendxmpp
2
3```js