milmilmilmil
API 参考

Danmaku

Danmaku read/write tied to a media file

GET
/api/v1/danmaku/{mediaFileId}

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Path Parameters

mediaFileId*string

Response Body

application/json

curl -X GET "https://example.com/api/v1/danmaku/string"
[  {    "time": 0,    "mode": 0,    "color": "string",    "comment": "string"  }]
POST
/api/v1/danmaku/{mediaFileId}

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Path Parameters

mediaFileId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/api/v1/danmaku/string" \  -H "Content-Type: application/json" \  -d '{    "time": 0,    "comment": "string"  }'
Empty