http://api.microsofttranslator.com/V2
GetTranslations Element
Collapse All
Expand All
http://api.microsofttranslator.com/V2
: GetTranslations Element
Namespace
http://api.microsofttranslator.com/V2
Diagram
Overview
GetTranslations
Sequence
appId
optional
xs:string
A
string
containing "Bearer" + " " + access token.
text
optional
xs:string
A
string
representing the text to split into sentences. The size of the text must not exceed 10000 characters.
from
optional
xs:string
A
string
containing the language code of the source language. Must be a valid culture name.
to
optional
xs:string
A
string
containing the language code of the target language. Must be a valid culture name.
maxTranslations
optional
xs:int
An
int
representing the maximum number of translations to return.
options
optional
TranslateOptions Complex Type
A
TranslateOptions
object which contains the values listed below. They are all optional and default to the most common settings.
Category: A
string
containing the category (domain) of the translation. Defaults to "general".
ContentType: A
string
containing the type of content. Either "text/html" or "text/plain". Defaults to "text/plain".
Uri: A
string
containing the content location of this translation.
User: A
string
used to track the originator of the submission.
State: User state to help correlate request and response. The same contents will be returned in the response.
Sequence
Category
optional
xs:string
A
string
containing the category (domain) of the translation. Defaults to "general".
ContentType
optional
xs:string
A
string
containing the type of content. Either "text/html" or "text/plain". Defaults to "text/plain".
IncludeMultipleMTAlternatives
optional
xs:boolean
ReservedFlags
optional
xs:string
State
optional
xs:string
User state to help correlate request and response. The same contents will be returned in the response.
Uri
optional
xs:string
A
string
containing the content location of this translation.
User
optional
xs:string
A
string
used to track the originator of the submission.
Source
See Also
http://api.microsofttranslator.com/V2
© 2013 All Rights Reserved.
Send comments
on this topic.