3This val produces the JSON `{ ok: true }` at the URL: https://tmcw-jsonokexample.web.val.run/
4
5Migrated from folder: Web_API/jsonOkExample
1## what is this?
2
3~这是一个用来检测主播是否直播,访问方法为:https://api.val.town/v1/run/nishui.biliStream?args=[xxx]~
4~其中 args=[id] 中的 `id` 是直播房间号码~
5
3Fetches information about runs of any val you author.
4
5Requires a secret called valtownToken, set to your API Token. See more about [authentication](https://docs.val.town/api/authentication) to understand how to generate a token.
6
7Migrated from folder: docs/api/getRuns
2Fetches information about yourself.
3
4Requires a secret called `valtownToken`, set to your API Token. See more about [authentication](https://docs.val.town/api/authentication) to understand how to generate a token.
5
6Migrated from folder: docs/api/getMe
5## Setup
6
71. Create a [Val Town API Token](https://www.val.town/settings/api)
82. Add it to [your secrets](https://www.val.town/settings/secrets) as `valtown`
93. Fork & Run this val
5## Setup
6
71. Create a [Val Town API Token](https://www.val.town/settings/api)
82. Add it to [your secrets](https://www.val.town/settings/secrets) as `valtown`
93. Fork & Run this val
1Migrated from folder: Archive/valtownApiTypesImportTest
1# [Val Town Typescript Spec](https://pomdtr-valtownOpenAPI.web.val.run)
2
3This val return an up-to-date typescript version of the val.town openapi spec for usage with a [feTS](https://github.com/ardatan/feTS) client.
4
5## Usage
9```typecript
10import { createClient, type NormalizeOAS } from "npm:fets";
11import openapi from "https://pomdtr-valtownOpenAPI.web.val.run/openapi.ts";
12
13export const client = createClient<NormalizeOAS<typeof openapi>>({
14 endpoint: openapi.servers[0].url,
15});
16```
1Migrated from folder: Archive/newValTownOpenAPI
1Migrated from folder: A_Make_A_Val_Day/_23_07_27_Generate_Val/generateValCodeAPI