3// GitHub gists
4export let githubGists = fetchJSON(
5 "https://api.github.com/users/stevekrouse/gists"
6);
3// GitHub followers
4export let githubFollowers = fetchJSON(
5 "https://api.github.com/users/stevekrouse/followers"
6);
3export const evalUrl = async (val: `@${string}.${string}`) =>
4 encodeURI(
5 "https://api.val.town/v1/eval/" + await raw(val),
6 );
5 query,
6 });
7 const searchURL = `https://www.val.town/api/trpc/search?input=${
8 encodeURIComponent(input)
9 }`;
1export function myApi(name) {
2 return "hi " + name;
3}
8 // Verify this webhook came from our bot
9 if (
10 req.headers.get("x-telegram-bot-api-secret-token") !==
11 process.env.telegramWebhookSecret
12 ) {
11export async function fetchCongressTradeReports(callback) {
12 const res = await fetchJSON(
13 "https://bff.capitoltrades.com/trades?sortBy=-pubDate"
14 );
15 const trades = res.data;
2
3export async function communityBoatingFlag() {
4 const response = await fetch("https://api.community-boating.org/api/flag");
5 const text = await response.text();
6 // Regex by Chat GPT :shrug:
4 async function fetchJoke() {
5 let response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
8 if (response.ok) {
1export function myApi(name) {
2 return "hi " + name;
3}
测试 gpt image 的不同 api 能否满足图片生成要求
This is an example of using the API to create a val.
Affordable & reliable alternative to Twitter API:
➡️ Access user profiles, tweets, followers & timeline data in real-time
➡️ Monitor profiles with nearly instant alerts for new tweets, follows & profile updates
➡️ Simple integration