Skip to main content
Module

x/bcdeno_api/mod.ts>IWebClient

🎲 Use BCDice-API from Deno easily
Latest
interface IWebClient
import { type IWebClient } from "https://deno.land/x/bcdeno_api@v1.1.1/mod.ts";

Methods

get(url: string, options?: Options): Promise<any>

指定されたURLにGETリクエストを送信する。レスポンスをJSONとしてパースして返す。

post(url: string, options?: Options): Promise<any>

指定されたURLにPOSTリクエストを送信する。レスポンスをJSONとしてパースして返す。