1Public API Endpoint
2
3Migrated from folder: bheros/API/bearObservationsAPI
3
4const dub = new Dub({
5 token: Deno.env.get("DUB_API_KEY"), // optional – defaults to process.env.DUB_API_KEY (Learn more: https://d.to/tokens)
6});
7
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 />
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: {