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/...?q=api&page=16&format=json

For typeahead suggestions, use the /typeahead endpoint:

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

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

Found 19787 results for "api"(3132ms)

val_town_openapi1 file match

@pomdtr•Updated 1 year ago

telegramValTownAPI1 file match

@stevekrouse•Updated 1 year ago

myApi1 file match

@jamesyin•Updated 1 year ago

MusicAPI22 file matches

@nishui•Updated 1 year ago

key_value_api1 file match

@mjweaver01•Updated 1 year ago

api1 file match

@weaverwhale•Updated 1 year ago

key_value_api1 file match

@brianleroux•Updated 1 year ago

api1 file match

@pomdtr•Updated 1 year ago

api1 file match

@zeroftdev•Updated 1 year ago

postHogAPICapture1 file match

@daisuke•Updated 1 year ago

wixmain.tsx10 matches

@helge•Updated 17 mins ago
89async function createOrUpdateHubSpotContact(email: string, formData: any) {
90 try {
91 const hubspotApiKey = Deno.env.get("HUBSPOT_API_KEY");
92
93 if (!hubspotApiKey) {
94 console.warn("HUBSPOT_API_KEY not configured");
95 return { success: false, error: "API key not configured" };
96 }
97
110 };
111
112 const hubspotResponse = await fetch("https://api.hubapi.com/crm/v3/objects/contacts", {
113 method: "POST",
114 headers: {
115 "Authorization": `Bearer ${hubspotApiKey}`,
116 "Content-Type": "application/json",
117 },
129 if (errorData.category === "CONFLICT") {
130 // Contact already exists, update it
131 const updateResponse = await fetch(`https://api.hubapi.com/crm/v3/objects/contacts/${email}?idProperty=email`, {
132 method: "PATCH",
133 headers: {
134 "Authorization": `Bearer ${hubspotApiKey}`,
135 "Content-Type": "application/json",
136 },
145 }
146
147 console.error("HubSpot API error:", errorData);
148 return { success: false, error: errorData };
149 }
220 } else {
221 const errorText = await slackResponse.text();
222 console.error("Slack API error:", errorText);
223 return { success: false, error: errorText };
224 }

email-attachment-handlerhandler.ts3 matches

@sorcoro•Updated 1 hour ago
151 }
152
153 const url = "https://api.dropbox.com/oauth2/token";
154
155 const formData = new URLSearchParams();
183 contentType: string,
184): Promise<DropboxUploadResponse> {
185 const url = "https://content.dropboxapi.com/2/files/upload";
186
187 // Create full path including folder
191 "Authorization": `Bearer ${accessToken}`,
192 "Content-Type": "application/octet-stream",
193 "Dropbox-API-Arg": JSON.stringify({
194 path: fullPath,
195 mode: "add",
apiry
snartapi