运营
POST /订单
总结 | 提交一个新的标题顺序 | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
URL. | / api / v1 /订单 | ||||||||||||||||||||||||||||||||||||||||||
详细描述 | 提交新订单以进行标题。订单请求包含两个主要元素:
付款方式为借记用户的账户余额来完成。 |
||||||||||||||||||||||||||||||||||||||||||
请求头 |
|
||||||||||||||||||||||||||||||||||||||||||
要求身体 | 包含订单详细信息的XML或JSON。请参阅下面的示例实体,以说明所使用的字段。 | ||||||||||||||||||||||||||||||||||||||||||
响应 | 成功,201。 在误差,400错误请求。 |
||||||||||||||||||||||||||||||||||||||||||
响应头 |
|
||||||||||||||||||||||||||||||||||||||||||
响应体 | 成功,是空的。在错误时,将包含一个 |
||||||||||||||||||||||||||||||||||||||||||
错误代码 |
|
||||||||||||||||||||||||||||||||||||||||||
带注释的示例请求 |
{/ *可选,对于客户端* /“client_ref”的订单的参考编号:“xb432423”,/ *可选,指定不需要正常的周转时间。默认情况下,假设正常的周转时间(假)。请注意,此值仅用为指南。* /“non_standard_tat_guarantee”:“false”,/ *必填,提供有关需要字样的信息和指定所需的标题输出格式的信息。* /“caption_options”:{/ *强制性,包含要标题的媒体列表。必须具有至少一个元素* /“输入”:[{/ *视频长度,以秒为单位。* /“video_length_seconds”:600,/ *介质的URI,从呼叫到发布/输入* /,“URI”:“URN:Rev:InputMedia:467432FDS”,/ *可选,扬声器名称列表。兼容任何输入格式。* /“扬声器”:[“John”,“Jane”,“Sam Jones”],/ *可选,词汇表项列表。兼容任何输入格式。 */ "glossary": ["cryptography", "MD5", "SHA-1", "bcrypt"], }, { /* YouTube URL, video length determined automatically. */ "external_link": "http://www.youtube.com/watch?v=UF8uR6Z6KLc" }, { /* For any other external URL, video length in seconds is required. */ "video_length_seconds": 300, "external_link": "https://vimeo.com/7976699" } ], /* Optional, language codes to request foreign language subtitles. */ "subtitle_languages": [ "es-es", "it" ], /* Optional, what file formats should the captions be optimized for. See table in description section for supported formats. By default, we optimize for SubRip. */ "output_file_formats": [ "Scc", "SubRip" ], /* Optional, should we rush this order? Rush will deliver your files up to 5x faster. Requesting Rush adds $1 per audio minute to the cost of your orders. */ "rush": true, /* Optional, should we generate burned-in caption (aka open captions) videos for every input on this order? Requesting burned-in captions adds $0.25 per audio minute to the cost of your orders. Burned-in captions will be available to download via the API for 7 days after they are generated. */ "burned_in_captions": true }, /* Optional, enables receiving notifications about the order status */ "notification": { /* The url for notifications. Mandatory if the notifications element is used. Updates will be posted to this URL */ "url": "http://www.clientsite.com/orderupdate", /* Optional, specifies which notifications are sent. If "Detailed", then a notification is sent whenever the order is in a new status or has a new comment. If "FinalOnly" (the default), notification is sent only when the order is complete. */ "level": "Detailed" }, /* Optional- customer must have invoicing, it links order to PO, Project, or Department for billing */ "ponumber": "SamplePoNumber01" }
|