27 <head>
28 <title>SQLite Explorer</title>
29 <link rel="preconnect" href="https://fonts.googleapis.com" />
30
31 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
32 <link
33 href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap"
34 rel="stylesheet"
35 />
1import Mux from "npm:@mux/mux-node";
2
3const SIEVE_API_KEY = Deno.env.get("SIEVE_API_KEY");
4const SUPPORTED_LANGUAGES = [
5 { "name": "English", "code": "en" },
111 body: JSON.stringify(payload),
112 headers: {
113 "X-API-Key": SIEVE_API_KEY,
114 "Content-Type": "application/json",
115 },
122 const req = await fetch(`https://mango.sievedata.com/v2/jobs/${jobId}`, {
123 headers: {
124 "X-API-Key": SIEVE_API_KEY,
125 "Content-Type": "application/json",
126 },
5## Usage:
6Required environment variables:
7- Sieve API token (`SIEVE_API_KEY`)
8- Mux Access token details (`MUX_TOKEN_ID`, `MUX_TOKEN_SECRET`)
9This endpoint requires an existing Mux asset that's `ready` with an audio-only static rendition associated with it. You can run [this val](https://www.val.town/v/mux/createDubbingTestAsset) to create a new one for testing.
3
4const sendEmail = async (email: any, subject: string, message: string) => {
5 const resend = new Resend(Deno.env.get("resendApiKey"));
6
7 if (email) {
13## Authentication
14
15Login to your SQLite Explorer with [password authentication](https://www.val.town/v/pomdtr/password_auth) with your [Val Town API Token](https://www.val.town/settings/api) as the password.
16
17## Todos / Plans
27 <head>
28 <title>SQLite Explorer</title>
29 <link rel="preconnect" href="https://fonts.googleapis.com" />
30
31 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
32 <link
33 href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap"
34 rel="stylesheet"
35 />
27}> {
28 return fetchJSON(
29 `https://api.val.town/v1/vals/${valId}/versions`,
30 {
31 headers: {
17 console.log("Starting...");
18 let response = await fetch(
19 `https://www.nationstates.net/cgi-bin/api.cgi?nation=${nations[i]}&q=issues`,
20 {
21 headers: myHeaders,
3Requires:
4- Huggingface token (HF_TOKEN) for the sentiment analysis of options. Generate a read-only token at [Huggingface](https://huggingface.co/settings/tokens) after making an account to use.
5- Email address (EMAIL) for user agent. Required as per [NationStates ToS](tionstates.net/pages/api.html#terms)
6- Autologin token (AUTOLOGIN) for logging into NationStates. See [NationStates API docs](https://www.nationstates.net/pages/api.html#authenticating) for more info.
7- Nation name (NATION_ID). Put your nation name, the one you use when you login to your account.
8
9[](https://www.val.town/v/stevekrouse/blob_admin_app/fork)
10
11It 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).
12
13# TODO