1export function myApi(name) {
2 return "hi " + name;
3}
11 // Currently only returns 1 flight..
12 // possible v4 endpoint here:
13 // https://www.ryanair.com/api/farfnd/v4/roundTripFares?departureAirportIataCode=STN&outboundDepartureDateFrom=2023-11-01&market=en-gb&adultPaxCount=1&arrivalAirportIataCode=RBA&searchMode=ALL&outboundDepartureDateTo=2023-11-30&inboundDepartureDateFrom=2023-11-01&inboundDepartureDateTo=2023-12-03&outboundDepartureDaysOfWeek=THURSDAY&durationFrom=1&durationTo=7&outboundDepartureTimeFrom=00:00&outboundDepartureTimeTo=23:59&inboundDepartureTimeFrom=00:00&inboundDepartureTimeTo=23:59
14 // possibly more info in this gist: https://gist.github.com/vool/bbd64eeee313d27a82ab
15 //
16 const BASE_URL = "https://services-api.ryanair.com/farfnd/3/";
17 const AIRPORT_FROM = "VNO";
18 const AIRPORT_TO = "MLA";
3export let currency = async (base = "usd", desired?: string = "php") => {
4 let { rates } = await fetchJSON(
5 `https://open.er-api.com/v6/latest/${base}`,
6 );
7 return rates;
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function myApi() {
4 const url =
5 "https://everycampus.com/campus/c1e6333f-7f5b-475d-897a-c78e0a88135e";
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3// Explore the Star Wars universe, from StarWarsAPI
4export let starWars = fetchJSON(
5 "https://swapi.dev/api/people/1/"
6);
1export function myApi(name) {
2 return "hi " + name;
3}