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/$%7Burl%7D?q=api&page=13&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 11519 results for "api"(2245ms)

myApi1 file match

@fahimfoysal•Updated 1 year ago

vtApiExample2 file matches

@neverstew•Updated 1 year ago

updateVtApiTypes2 file matches

@neverstew•Updated 1 year ago

jsrApi_example2 file matches

@vladimyr•Updated 1 year ago

jsrApi2 file matches

@vladimyr•Updated 1 year ago

myApi1 file match

@tonycheal•Updated 1 year ago

APIAyeee

@Negash•Updated 1 year ago

apiProxy1 file match

@postpostscript•Updated 1 year ago

emailAPI1 file match

@agmm•Updated 1 year ago

myApi2 file matches

@greatcode•Updated 1 year ago

GitHub-PR-AutomationREADME.md1 match

@twschiller•Updated 2 hours ago
79
801. **Create a Slack App**:
81 - Go to [Slack API Apps](https://api.slack.com/apps) → Create New App → From scratch
82 - Name your app and select your workspace
83 - Click "Create App"
32};
33
34// Types for Slack API
35type SlackMessage = {
36 blocks: any[];
219
220 // Get PR details
221 const url = `https://api.github.com/repos/${repo}/pulls/${prNumber}`;
222
223 let response;
241 return await response.json();
242 } catch (jsonError) {
243 throw new Error(`Failed to parse GitHub API response: ${jsonError.message}`);
244 }
245}
246
247// Merge a PR via GitHub API
248async function mergePR(repo: string, prNumber: number) {
249 const token = Deno.env.get("GITHUB_TOKEN");
282
283 // Proceed with merge
284 const url = `https://api.github.com/repos/${repo}/pulls/${prNumber}/merge`;
285
286 const response = await fetch(url, {
apiv1
papimark21