8 params: {
9 query: {
10 query: "fetchJSON",
11 limit: 30,
12 offset: 60,
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3async function post_response(body, f: SlackFunction, config: SlackConfig) {
4 // Note: `body.event` has information about the event like the sender and the message text
5 const text = await f(body);
6 const result = await fetchJSON("https://slack.com/api/chat.postMessage", {
7 headers: { "Authorization": `Bearer ${config.slackToken}` },
8 method: "POST",
1import { paths } from "https://esm.town/v/pomdtr/openapi_schema";
2import createClient2 from "npm:openapi-fetch";
3
4export default function createClient(options?: {
4const router = AutoRouter();
5router.get("/", () => "Hi from itty-router!");
6export default denoServer(router.fetch);
5app.get("/", (c) => c.text("Hello from Hono!"));
6app.get("/yeah", (c) => c.text("Routing!"));
7export default denoServer(app.fetch);
13app.use(router.routes());
14app.use(router.allowedMethods());
15export default denoServer(app.fetch);
18 timestamp?: number; // ms
19}) {
20 return fetch("http://www.pushplus.plus/send", {
21 method: "POST",
22 headers: { "Content-Type": "application/json" },
4 }
5 return Object.assign(handler, {
6 fetch: (req) => handler(req),
7 });
8}
4 }
5 return Object.assign(handler, {
6 fetch: (req) => handler(req),
7 });
8}
64});
65
66export default app.fetch;