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=19&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 19600 results for "api"(8954ms)

untitled_oliveTapir1 file match

@llary24Updated 1 year ago

runValAPI2 file matches

@stevekrouseUpdated 1 year ago

runValAPIAuth2 file matches

@stevekrouseUpdated 1 year ago

callGoogleSheetsAPI2 file matches

@claywayUpdated 1 year ago

myApi1 file match

@raymondcamdenUpdated 1 year ago

myApi1 file match

@ianjkaplanUpdated 1 year ago

myApi1 file match

@hungtdUpdated 1 year ago

myApi1 file match

@santiUpdated 1 year ago

myApi1 file match

@kavanaghUpdated 1 year ago

myApi1 file match

@kf9Updated 1 year ago

untitled-5696api.tsx6 matches

@tallesjpUpdated 36 mins ago
1// api.ts
2// Contém funções de backend para manipulação do fluxograma e conversão para IA.
3
179}
180
181// Converter fluxograma para instruções de IA (função interna do módulo api.ts)
182function convertFlowchartToAIInternal(flowchartData: any) {
183 const instructions: any = {
207 "input": "user_input",
208 "output": "system_output",
209 "api": "api_call",
210 "database": "data_operation",
211 "loop": "iteration",
288 break;
289
290 case "api":
291 step.action = "make_api_call";
292 step.parameters = {
293 url: node.url || "",
369 },
370 {
371 type: "api_error",
372 action: "log_and_continue",
373 fallback_step: "error_notification",

untitled-5696main.tsx17 matches

@tallesjpUpdated 38 mins ago
9 exportJSON,
10 importJSON,
11} from "./api.ts"; // Importa as funções de API do arquivo api.ts
12
13export default async function (req: Request): Promise<Response> {
15 const path = url.pathname;
16
17 // Roteamento da API
18 if (path === "/api/save-flowchart" && req.method === "POST") {
19 return await saveFlowchart(req);
20 }
21
22 if (path === "/api/convert-to-ai" && req.method === "POST") {
23 return await convertToAI(req);
24 }
25
26 if (path === "/api/load-flowchart" && req.method === "GET") {
27 return await loadFlowchart(req);
28 }
29
30 if (path === "/api/export-json" && req.method === "POST") {
31 return await exportJSON(req);
32 }
33
34 if (path === "/api/import-json" && req.method === "POST") {
35 return await importJSON(req);
36 }
389 }
390
391 .flowchart-node.api {
392 background: linear-gradient(135deg, rgba(111, 66, 193, 0.4), rgba(111, 66, 193, 0.2));
393 border-color: rgba(111, 66, 193, 0.6);
712 📤 Saída
713 </button>
714 <button class="btn" onclick="addNode('api')">
715 🌐 API
716 </button>
717 <button class="btn" onclick="addNode('database')">
766 <div>Saída</div>
767 </div>
768 <div class="node-item" draggable="true" data-type="api">
769 <div class="emoji">🌐</div>
770 <div>API</div>
771 </div>
772 <div class="node-item" draggable="true" data-type="database">
935 * **Arquivo:** Para gerar e salvar um arquivo.
936 * **Notificação:** Para enviar alertas (e-mail, push, etc.).
937 * **Resposta API:** Para formatar uma resposta para uma chamada de API.
938
939### 🌐 API (API Call)
940Representa uma chamada a uma API externa ou serviço web.
941* **Emoji:** 🌐
942* **Descrição IA:** \`api_call\`
943* **Parâmetros de Edição:**
944 * **Texto do nó:** Título exibido no nó (ex: "Consultar Previsão do Tempo").
945 * **Descrição detalhada:** URL, método (GET, POST), headers e corpo da requisição.
946 * **Subtipos disponíveis:**
947 * **REST API:** Para interações com APIs RESTful.
948 * **GraphQL:** Para consultas GraphQL.
949 * **Webhook:** Para enviar ou receber webhooks.
Kapil01
apiv1