| 1 | import type { PublishOptionValuesVo } from '@/api/channels/channel.types' |
| 2 | import { request } from '@/utils/request' |
| 3 | |
| 4 | // Source: plat/youtube.ts |
| 5 | /** |
| 6 | * 获取账号平台动态发布选项取值 |
| 7 | */ |
| 8 | export function apiGetYouTubeCategories(accountId: string, regionCode: string) { |
| 9 | return request<PublishOptionValuesVo>({ |
| 10 | url: `v2/channels/accounts/${encodeURIComponent(accountId)}/publish-options/categoryId/values`, |
| 11 | method: 'GET', |
| 12 | params: { |
| 13 | regionCode, |
| 14 | }, |
| 15 | }) |
| 16 | } |
| 17 |