5Generated using Val.town
67Relies on the Zoomin Software bundle API to fetch the data using the JSON API, and then pluck and render the HTML part.
zerto-lifecycle-matrixmain.tsx2 matches
1export default async function (req: Request): Promise<Response> {
2try {
3const response = await fetch("https://help-be.zerto.com/api/bundle/Lifecycle.Matrix.HTML/page/product_version_lifecycle_matrix_for_zerto.html");
4
5if (!response.ok) {
16});
17} catch (error) {
18console.error('Error fetching data:', error);
19return new Response(`<p>Error: ${error.message}</p>`, {
20status: 500,
Loudaily_lineup_scheduler.tsx10 matches
188// Call MLB Stats API for probable pitchers
189const dateStr = date.toISOString().split("T")[0];
190const response = await fetch(
191`https://statsapi.mlb.com/api/v1/schedule?sportId=1&date=${dateStr}&hydrate=probablePitcher`,
192);
221return pitchers;
222} catch (error) {
223console.error(`❌ Error fetching probable pitchers:`, error);
224return [];
225}
465private async refreshAccessToken(): Promise<void> {
466try {
467const response = await fetch("https://api.login.yahoo.com/oauth2/get_token", {
468method: "POST",
469headers: {
530console.log(`🔍 Making request to: ${url.toString()}`);
531532const response = await fetch(url.toString(), {
533headers: {
534"Authorization": `Bearer ${this.config.access_token}`,
543544// Retry the request with new token
545const retryResponse = await fetch(url.toString(), {
546headers: {
547"Authorization": `Bearer ${this.config.access_token}`,
593// Get user's leagues using the specific game key
594const leaguesEndpoint = `/users;use_login=1/games;game_keys=${gameKey}/leagues`;
595console.log(`🔍 Fetching leagues with endpoint: ${leaguesEndpoint}`);
596const leaguesResponse = await this.makeRequest(leaguesEndpoint);
597625return leagues;
626} catch (error) {
627console.error("❌ Error fetching user leagues:", error);
628return [];
629}
735return players;
736} catch (error) {
737console.error(`Error fetching roster for team ${teamKey}:`, error);
738return [];
739}
764console.log(`📝 XML body: ${xmlBody}`);
765766const response = await fetch(`${this.baseUrl}/team/${teamKey}/roster`, {
767method: "PUT",
768headers: {
796797// Store results in Val.town's blob storage for history
798await fetch("https://api.val.town/v1/blob/scheduler_results", {
799method: "POST",
800headers: {
NewPerspctovologyAppmain.tsx1 match
15// 🧠 Optional: Call your GPT API here (if you want real answers)
16// Example:
17// const response = await fetch("https://YOUR-GPT-ENDPOINT", ...)
1819// For now: respond with a success confirmation
invest-trackercrypto_news_cron.tsx2 matches
78export default async function run() {
9/* 1 ▸ fetch 10 freshest business headlines that mention our coins */
10const q = encodeURIComponent(COINS.slice(0, 3).join(" OR "));
11const url = `https://newsdata.io/api/1/latest?apikey=${KEY}`
12+ `&q=${q}&language=en&size=10&category=business`;
1314const res = await fetch(url).then(r => r.json());
15const hits = Array.isArray(res.results) ? res.results : [];
16
11})&language=en&sortBy=publishedAt&pageSize=10&apiKey=${KEY}`;
1213const arts = (await fetch(query).then(r => r.json())).articles ?? [];
14const top2 = arts.slice(0, 2).map(a => ({
15title: a.title,
beeminder-apimain.tsx8 matches
76};
7778const response = await fetch(`${baseUrl}/users/me/goals/${goalSlug}/datapoints.json`, {
79method: 'POST',
80headers: {
113114// First, get the current goal to retrieve the roadall
115const getResponse = await fetch(`${baseUrl}/users/me/goals/${goalSlug}.json?auth_token=${authToken}`);
116if (!getResponse.ok) {
117const error = await getResponse.json();
118throw new Error(JSON.stringify({ error: 'Failed to fetch current goal', details: error }));
119}
120
143};
144145const response = await fetch(`${baseUrl}/users/me/goals/${goalSlug}.json`, {
146method: 'PUT',
147headers: {
206}
207
208const response = await fetch(`${baseUrl}/users/me/goals/${goalSlug}.json?auth_token=${token}`);
209const goal: BeeminderGoal = await response.json();
210
211if (!response.ok) {
212return new Response(JSON.stringify({ error: 'Failed to fetch goal', details: goal }), {
213status: response.status,
214headers: { 'Content-Type': 'application/json' }
251}
252
253const response = await fetch(`${baseUrl}/users/me/goals/${goalSlug}/datapoints.json?auth_token=${token}`);
254const datapoints = await response.json();
255
256if (!response.ok) {
257return new Response(JSON.stringify({ error: 'Failed to fetch datapoints', details: datapoints }), {
258status: response.status,
259headers: { 'Content-Type': 'application/json' }
gissue-rolodexApp.tsx1 match
2122try {
23const response = await fetch("/api/config", {
24method: "POST",
25headers: {
gissue-rolodexindex.ts1 match
47});
4849export default app.fetch;
honoExampleBkndmain.tsx1 match
3const app = await createAdapterApp();
45export default app.fetch;