8) => {
9 const rssItems = previousDjs.map((dj) => {
10 const djImgSrc = `https://r-a-d.io/api/dj-image/${encodeURIComponent(
11 dj.djimage
12 )}`;
37 description:
38 "Informing you of when the DJ changes on r/a/dio with only a 15 minute delay!",
39 rssLink: "https://api.val.town/v1/express/pettan.generateRAdioDjRss",
40 });
41 return res.type("application/rss+xml").send(rssBody);
3// Github profile
4export let githubUser = fetchJSON(
5 "https://api.github.com/users/theAJFM"
6);
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
4 const { default: axios } = await import("npm:axios");
5 const tasUrl =
6 "https://default.exp-tas.com/exptas9/a5766fee-9478-488b-9fc0-64d1ad72c290-IcePrime_MSNApp/api/v1/tas";
7 const urls = [
8 "https://sapphire-assignment-api-westus2-01-01.azurewebsites.net/api/VariantAssignment/checkPollingStatus",
9 "https://sapphire-assignment-api-eastus2-02-01.azurewebsites.net/api/VariantAssignment/checkPollingStatus",
10 "https://sapphire-assignment-api-japaneast-01-01.azurewebsites.net/api/VariantAssignment/checkPollingStatus",
11 "https://sapphire-assignment-api-koreacenter-01-01.azurewebsites.net/api/VariantAssignment/checkPollingStatus",
12 "https://sapphire-assignment-api-northeurope-01-01.azurewebsites.net/api/VariantAssignment/checkPollingStatus",
13 "https://sapphire-assignment-api-westeurope-01-01.azurewebsites.net/api/VariantAssignment/checkPollingStatus",
14 "https://sapphire-assignment-api-westus2-02-01.azurewebsites.net/api/VariantAssignment/checkPollingStatus",
15 ];
16 const results = [];
1export let figmaAPIURL = "https://api.figma.com";
36 </li>
37 <li >
38 <a href="https://val.town/examples/apis" style="font-weight: 800; color:${valTownCSSLink}; display:inline">APIs</a>
39 </li>
40 <li>
1export function myApi(name) {
2 return "hi " + name;
3}
3export const getIpInfo = async (req: express.Request) => {
4 const ip = (req as any).options.headers["true-client-ip"];
5 return await (await fetch(`http://ip-api.com/json/${ip}`)).json();
6};
10 let videoLink = "";
11 const url =
12 "https://tasty.p.rapidapi.com/recipes/list?from=0&size=80&tags=under_30_minutes";
13 const options = {
14 method: "GET",
15 headers: {
16 "X-RapidAPI-Key": process.env.tastyAPIKey,
17 "X-RapidAPI-Host": "tasty.p.rapidapi.com",
18 },
19 };