Skip to content

Commit c19135a

Browse files
chore: sync OpenAPI spec and generated SDK v3.0.47
# OpenAPI Sync Summary - Paths: 327 -> 328 - Tags: 34 -> 34 - Added operationId count: 1 - Removed operationId count: 0 - Changed operationId count: 0 ## Added operationId - getApiToutiaoGetVideoDetailV1 [GET /api/toutiao/get-video-detail/v1] ## Removed operationId - None ## Changed operationId - None
1 parent bab5944 commit c19135a

4 files changed

Lines changed: 169 additions & 5 deletions

File tree

justoneapi/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.0.46"
1+
__version__ = "3.0.47"

justoneapi/generated/resources/toutiao.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,26 @@ def get_article_detail_v1(
2929
},
3030
)
3131

32+
def get_video_detail_v1(
33+
self,
34+
*,
35+
video_id: str,
36+
) -> ApiResponse[Any]:
37+
"""
38+
Video Details
39+
40+
Retrieves details for a Toutiao video identified by its video ID. Use it to look up a known video for content review, archiving, or related media analysis.
41+
42+
Args:
43+
video_id: The unique identifier of the Toutiao video.
44+
"""
45+
return self._get(
46+
"/api/toutiao/get-video-detail/v1",
47+
{
48+
"videoId": video_id,
49+
},
50+
)
51+
3252
def get_user_detail_v1(
3353
self,
3454
*,

openapi/public-api.json

Lines changed: 74 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17843,6 +17843,78 @@
1784317843
]
1784417844
}
1784517845
},
17846+
"/api/toutiao/get-video-detail/v1": {
17847+
"get": {
17848+
"description": "Retrieves details for a Toutiao video identified by its video ID. Use it to look up a known video for content review, archiving, or related media analysis.",
17849+
"operationId": "getApiToutiaoGetVideoDetailV1",
17850+
"parameters": [
17851+
{
17852+
"description": "Authentication token required to access the API.",
17853+
"in": "query",
17854+
"name": "token",
17855+
"required": true,
17856+
"schema": {
17857+
"type": "string"
17858+
}
17859+
},
17860+
{
17861+
"description": "The unique identifier of the Toutiao video.",
17862+
"in": "query",
17863+
"name": "videoId",
17864+
"required": true,
17865+
"schema": {
17866+
"type": "string"
17867+
}
17868+
}
17869+
],
17870+
"responses": {
17871+
"200": {
17872+
"content": {
17873+
"application/json": {
17874+
"schema": {
17875+
"$ref": "#/components/schemas/Result"
17876+
}
17877+
}
17878+
},
17879+
"description": "OK"
17880+
},
17881+
"400": {
17882+
"$ref": "#/components/responses/ResultBadRequestResponse"
17883+
},
17884+
"401": {
17885+
"$ref": "#/components/responses/ResultUnauthorizedResponse"
17886+
},
17887+
"403": {
17888+
"$ref": "#/components/responses/ResultForbiddenResponse"
17889+
},
17890+
"429": {
17891+
"$ref": "#/components/responses/ResultTooManyRequestsResponse"
17892+
},
17893+
"500": {
17894+
"$ref": "#/components/responses/ResultInternalServerErrorResponse"
17895+
},
17896+
"503": {
17897+
"$ref": "#/components/responses/ResultServiceUnavailableResponse"
17898+
}
17899+
},
17900+
"summary": "Video Details",
17901+
"tags": [
17902+
"Toutiao"
17903+
],
17904+
"x-api-version": "v1",
17905+
"x-endpoint-family": "toutiao_get_video_detail",
17906+
"x-highlights": [],
17907+
"x-order": "27001050",
17908+
"x-search-aliases": [
17909+
"Toutiao video details API",
17910+
"Toutiao video ID lookup",
17911+
"Toutiao video information",
17912+
"今日头条视频详情",
17913+
"头条视频 ID 查询",
17914+
"头条视频信息"
17915+
]
17916+
}
17917+
},
1784617918
"/api/toutiao/search/v1": {
1784717919
"get": {
1784817920
"deprecated": true,
@@ -30781,7 +30853,7 @@
3078130853
"x-platform-id": "twitter"
3078230854
},
3078330855
{
30784-
"description": "Toutiao articles, profiles, and search data for news monitoring, publisher analysis, and topic research.",
30856+
"description": "Toutiao articles, videos, profiles, and search data for news monitoring, publisher analysis, and topic research.",
3078530857
"name": "Toutiao",
3078630858
"x-platform-aliases": [
3078730859
"Toutiao",
@@ -31112,5 +31184,5 @@
3111231184
"x-platform-id": "1688"
3111331185
}
3111431186
],
31115-
"x-openapi-release-id": "fed998d1ceac8848"
31187+
"x-openapi-release-id": "f170666706affee2"
3111631188
}

openapi/public-api.normalized.json

Lines changed: 74 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18121,6 +18121,78 @@
1812118121
]
1812218122
}
1812318123
},
18124+
"/api/toutiao/get-video-detail/v1": {
18125+
"get": {
18126+
"description": "Retrieves details for a Toutiao video identified by its video ID. Use it to look up a known video for content review, archiving, or related media analysis.",
18127+
"operationId": "getApiToutiaoGetVideoDetailV1",
18128+
"parameters": [
18129+
{
18130+
"description": "The unique identifier of the Toutiao video.",
18131+
"in": "query",
18132+
"name": "videoId",
18133+
"required": true,
18134+
"schema": {
18135+
"type": "string"
18136+
},
18137+
"x-sdk-python-name": "video_id"
18138+
}
18139+
],
18140+
"responses": {
18141+
"200": {
18142+
"content": {
18143+
"application/json": {
18144+
"schema": {
18145+
"$ref": "#/components/schemas/Result"
18146+
}
18147+
}
18148+
},
18149+
"description": "OK"
18150+
},
18151+
"400": {
18152+
"$ref": "#/components/responses/ResultBadRequestResponse"
18153+
},
18154+
"401": {
18155+
"$ref": "#/components/responses/ResultUnauthorizedResponse"
18156+
},
18157+
"403": {
18158+
"$ref": "#/components/responses/ResultForbiddenResponse"
18159+
},
18160+
"429": {
18161+
"$ref": "#/components/responses/ResultTooManyRequestsResponse"
18162+
},
18163+
"500": {
18164+
"$ref": "#/components/responses/ResultInternalServerErrorResponse"
18165+
},
18166+
"503": {
18167+
"$ref": "#/components/responses/ResultServiceUnavailableResponse"
18168+
}
18169+
},
18170+
"security": [
18171+
{
18172+
"tokenAuth": []
18173+
}
18174+
],
18175+
"summary": "Video Details",
18176+
"tags": [
18177+
"Toutiao"
18178+
],
18179+
"x-api-version": "v1",
18180+
"x-endpoint-family": "toutiao_get_video_detail",
18181+
"x-highlights": [],
18182+
"x-order": "27001050",
18183+
"x-sdk-class-name": "ToutiaoResource",
18184+
"x-sdk-method-name": "get_video_detail_v1",
18185+
"x-sdk-resource": "toutiao",
18186+
"x-search-aliases": [
18187+
"Toutiao video details API",
18188+
"Toutiao video ID lookup",
18189+
"Toutiao video information",
18190+
"今日头条视频详情",
18191+
"头条视频 ID 查询",
18192+
"头条视频信息"
18193+
]
18194+
}
18195+
},
1812418196
"/api/toutiao/search/v1": {
1812518197
"get": {
1812618198
"deprecated": true,
@@ -31387,7 +31459,7 @@
3138731459
"x-platform-id": "twitter"
3138831460
},
3138931461
{
31390-
"description": "Toutiao articles, profiles, and search data for news monitoring, publisher analysis, and topic research.",
31462+
"description": "Toutiao articles, videos, profiles, and search data for news monitoring, publisher analysis, and topic research.",
3139131463
"name": "Toutiao",
3139231464
"x-platform-aliases": [
3139331465
"Toutiao",
@@ -31718,5 +31790,5 @@
3171831790
"x-platform-id": "1688"
3171931791
}
3172031792
],
31721-
"x-openapi-release-id": "fed998d1ceac8848"
31793+
"x-openapi-release-id": "f170666706affee2"
3172231794
}

0 commit comments

Comments
 (0)