Back

Version 18

5/2/2024
import createClient from "https://esm.town/v/pomdtr/val_town_client";

const client = createClient({
token: Deno.env.get("valtown"),
});

const { data, error } = await client.GET("/v1/search/vals", {
params: {
query: {
query: "fetchJSON",
limit: 30,
offset: 60,
},
},
});

if (error) {
console.log(error);
} else {
console.log(data);
}
Updated: May 2, 2024