1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "Hello " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1import { myApi } from "https://esm.town/v/sbecker/myApi";
2
3export function myFoo(name) {
4 console.email("Testing email from val town " + name);
5 return "hello --- " + myApi("x") + " name: " + name;
6}
3
4export const alphaVantageSymbolQuery = async ({
5 apikey,
6 ...options
7}: {
8 apikey: string,
9 function:
10 | "TIME_SERIES_INTRADAY"
23 slice?: string,
24}) => {
25 const API_HOST = "alpha-vantage.p.rapidapi.com";
26 const queryString = await toQueryString(options);
27
28 try {
29 const json = await fetchJSON(
30 `https://${API_HOST}/query?${queryString}`,
31 {
32 method: "GET",
33 headers: {
34 "X-RapidAPI-Key": apikey,
35 "X-RapidAPI-Host": API_HOST,
36 },
37 }
3// Activity suggestions for when you're bored
4export let boredActivities = fetchJSON(
5 "https://www.boredapi.com/api/activity",
6);
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}