Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/image-url.jpg?q=fetch&page=179&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=fetch

Returns an array of strings in format "username" or "username/projectName"

Found 10389 results for "fetch"(1607ms)

Assistantindex.html5 matches

@charmaine•Updated 1 week ago
287 async function loadEvents() {
288 try {
289 const response = await fetch('/api/events');
290
291 if (!response.ok) {
292 throw new Error('Failed to fetch events');
293 }
294
493
494 try {
495 const response = await fetch(`/api/events/${currentEvent.id}`, {
496 method: 'DELETE',
497 });
533
534 try {
535 const response = await fetch(`/api/events/${currentEvent.id}/reschedule`, {
536 method: 'POST',
537 headers: {
578
579 try {
580 const response = await fetch('/api/assistant', {
581 method: 'POST',
582 headers: {

Assistantcalendar.ts1 match

@charmaine•Updated 1 week ago
25 }
26
27 const response = await fetch(url, options);
28
29 if (!response.ok) {

Assistantauth.ts3 matches

@charmaine•Updated 1 week ago
49 }
50
51 const tokenResponse = await fetch("https://oauth2.googleapis.com/token", {
52 method: "POST",
53 headers: {
71
72 // Get user email
73 const userInfoResponse = await fetch("https://www.googleapis.com/oauth2/v2/userinfo", {
74 headers: {
75 Authorization: `Bearer ${tokenData.access_token}`,
119 }
120
121 const refreshResponse = await fetch("https://oauth2.googleapis.com/token", {
122 method: "POST",
123 headers: {

untitled-2390new-file-3588.ts4 matches

@amisplace•Updated 1 week ago
2
3/**
4 * Fetches deployment logs from Vercel for a specific project and deployment
5 *
6 * Required environment variables:
54 });
55
56 // Fetch deployment logs
57 const logs = await sdk.logs.list({
58 deploymentId,
89 );
90 } catch (error) {
91 console.error("Error fetching Vercel logs:", error);
92
93 return new Response(
94 JSON.stringify({
95 error: "Failed to fetch logs",
96 message: error.message,
97 }),

untitled-6906Main.tsx1 match

@Get•Updated 1 week ago
178
179 // Send command to server and get response
180 const response = await fetch('/', {
181 method: 'POST',
182 body: new FormData(inputForm)

untitled-6247handler.ts3 matches

@jhodges10•Updated 1 week ago
18 params.append("scope", SCOPES);
19
20 fetch("https://ims-na1.adobelogin.com/ims/token/v3", {
21 method: "POST",
22 headers: {
42 const url = `${baseUrl}?include=media_links.original`;
43
44 const response = await fetch(url, {
45 method: 'GET',
46 headers: {
64// const senseiEndpoint = 'https://image.adobe.io/sensei/cutout'
65
66// const response = await fetch(senseiEndpoint, {
67// method: 'POST',
68// headers: {

untitled-6247get-token.ts2 matches

@jhodges10•Updated 1 week ago
1// For Node.js, uncomment the following line:
2// const fetch = require('node-fetch');
3
4const CLIENT_ID = Deno.env.get("S2S_CLIENT_ID");
13 params.append("scope", SCOPES);
14
15 fetch("https://ims-na1.adobelogin.com/ims/token/v3", {
16 method: "POST",
17 headers: {

SmartRoutesLoginForm.tsx1 match

@Abbietech•Updated 1 week ago
25
26 try {
27 const response = await fetch("/api/auth/signup", {
28 method: "POST",
29 headers: {

SmartRoutesApp.tsx5 matches

@Abbietech•Updated 1 week ago
27 if (storedToken) {
28 setToken(storedToken);
29 fetchUser(storedToken);
30 } else {
31 setLoading(false);
33 }, []);
34
35 // Fetch user data with token
36 const fetchUser = async (authToken: string) => {
37 try {
38 const response = await fetch("/api/auth/me", {
39 headers: {
40 "Authorization": `Bearer ${authToken}`
51 }
52 } catch (error) {
53 console.error("Error fetching user:", error);
54 } finally {
55 setLoading(false);

SmartRoutesindex.ts1 match

@Abbietech•Updated 1 week ago
28
29// Export the Hono app for HTTP vals
30export default app.fetch;

fetchTechNews

@josiasaurel•Updated 14 hours ago

agentplex-deal-flow-email-fetch1 file match

@anandvc•Updated 6 days ago