You need to enable JavaScript to run this app.
机器翻译

机器翻译

复制全文
空间源文案
源文案列表
复制全文
源文案列表

接口说明

根据项目 id,空间 id 获取空间源文案列表

请求 API

名称内容
请求方式GET
ActionProjectNamespaceSources

请求参数

参数名是否必填类型描述
projectIdrequirednumber项目id
namespaceIdrequirednumber空间id
offsetoptionalnumber翻页偏移量。default: 0
limitoptionalnumber翻页最大数量。default: 25
keyTextsoptionalstring检索:精确匹配 key,逗号分隔(keyTexts: aa,bbb,ccc)
sourceIdsoptionalstring检索:精确匹配 id,逗号分隔(keyTexts: 111,222,333)
searchKeyoptionalstring检索:模糊匹配 key
searchSourceoptionalstring检索:模糊匹配源文案
translatedStatusoptionalnumber or string检索:翻译状态 0: 已翻译 1: 未翻译 2: 已最新 3: 待更新,也可逗号分隔多选,例如 1,2,3
distributeStatusoptionalnumber检索:发布状态 8: 未发布 7: 已发布 15: 所有状态 2: 灰度发布 4: 测试发布 1: 全量发布
localeoptionalstring语种
sourceoptionalstring筛选方式:按源文案数据筛选,这里的json string 数据,例如'{"TagName":1,"DateRange":[1693894465,1694499265],"TextType":0,"OperatorName":"2100011"}' TagName: 1是复数,4是单数;DateRange:最后操作起止时间,时间为Unix timestamp;TextType: 0是新增,1是修改;OperatorName: 最后操作人ID
targetoptionalstring筛选方式:按翻译文案数据筛选,同 source

返回数据

// HTTP Status: 200
{
  data: [
    {
      id: 6610468, // 源文案id
      namespaceId: 37848, // 空间id
      lang: 'de', // 源语言
      keyText: 'apiupdate', // 文案key
      content: '23333322232', // 文案内容
      lengthLimit: 0, // 最长字符
      tagName: '', // 文案类型,复数文案为:plural
      commentary: '', // 文案注释
      taskId: 0, // 来源于任务id
      createdAt: '2021-06-17T11:02:14.000Z', // 创建时间
      updatedAt: '2021-06-18T07:03:48.000Z', // 更新
      targetText: {
        id: 335716629,
        sourceTextId: 66101308,
        taskId: 785141526,
        isMt: false,
        lang: 'en',
        keyText: 'ttest10',
        content: 'test',
        tagName: 'singular',
        createdAt: '2023-09-12T06:23:29.000Z',
        updatedAt: '2023-09-12T06:23:47.000Z',
        textExtra: null
      },
      targetTexts: [
        {
          id: 335176629,
          sourceTextId: 66101308,
          taskId: 781514526,
          isMt: false,
          lang: 'en',
          keyText: 'ttest10',
          content: 'test',
          tagName: 'singular',
          createdAt: '202109-12T06:23:29.000Z',
          updatedAt: '2021-09-12T06:23:47.000Z',
          textExtra: null
        },
        {
          id: 335766124,
          sourceTextId: 66101308,
          taskId: 78514526,
          isMt: false,
          lang: 'es-SV',
          keyText: 'ttest10',
          content: 'sdfsdf',
          tagName: 'all',
          createdAt: '2021-09-12T05:58:13.000Z',
          updatedAt: '2021-09-12T06:23:45.000Z',
          textExtra: null
        },
        {
          id: 335716631,
          sourceTextId: 66103108,
          taskId: 78514526,
          isMt: false,
          lang: 'zh',
          keyText: 'ttest10',
          content: '3333',
          tagName: 'all',
          createdAt: '2021-09-12T06:26:36.000Z',
          updatedAt: '2021-09-12T06:26:36.000Z',
          textExtra: null
        }
      ]
    }
  ],
  total: 4,
  pagination: {
    offset: 0,
    limit: 25
  }
}
最近更新时间:2026.01.26 17:45:39
这个页面对您有帮助吗?
有用
有用
无用
无用