构造具有多个类别的API URI [英] Construct API URI with multiple categories
问题描述
我正在使用带有CAT工具的Microsoft Translator API并计划添加类别。是否可以在URI中为单个搜索构建多个类别?
I am using the Microsoft Translator API with a CAT tool and planning to add Categories. Is it possible to construct multiple categories in the URI for a single search?
所以我在Microsoft Translator Hub中有两个项目,有两个不同的类别。我试图用URI同时搜索两个。例如:contentType = text%20plain& from = en& to = fr& category = military& category = Tools& text = Hello + world
So I have two projects in Microsoft Translator Hub with 2 different categories. I am trying to search both at the same time with URI. Ex: contentType=text%20plain&from=en&to=fr&category=military&category=Tools&text=Hello+world
以上示例是否可行?当我尝试这样做时,我收到一条消息'参数'类别'必须小于101个字符'
Is the above example possible? When I tried to do this way I get a message 'the parameter 'category' must be less than 101 characters'
任何帮助都是值得赞赏的。
Any help in this is appreciated.
谢谢,
John
推荐答案
嗨约翰,
您一次只能使用一个类别值。对于Hub自定义系统,您需要提供特定系统的类别ID,您可以在"测试系统"中找到该类别ID。任何已部署系统的页面。
You can only use one category value at a time. For a Hub customized system you will need to provide the category ID for your specific system, which you can see on the "Test System" page for any deployed system.
https:/ /hub.microsofttranslator.com/Help/Download/Microsoft%20Translator%20Hub%20API%20Guide.pdf
如果这有帮助,请告诉我们.b
Chris Wendt
Microsoft Translator
Let us know if this helps,
Chris Wendt
Microsoft Translator
这篇关于构造具有多个类别的API URI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!