http://api.microsofttranslator.com/V2
http://api.microsofttranslator.com/V2 / Translate Element
In This Topic
    Translate Element
    In This Topic
    Namespace http://api.microsofttranslator.com/V2
    Diagram
    reservedFlags Element category Element contentType Element to Element from Element text Element appId Element Sequence Translate Element
    Overview
    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.
    contentType optional xs:string
    The format of the text being translated. The supported formats are "text/plain" and "text/html". Any HTML needs to be well-formed.
    category optional xs:string
    A string containing the category (domain) of the translation. Defaults to "general".
    reservedFlags optional xs:string
    Source
    <xs:element name="Translate" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:complexType>
        <xs:sequence>
          <xs:element minOccurs="0" name="appId" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="text" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="from" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="to" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="contentType" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="category" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="reservedFlags" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    See Also