Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This is preliminary documentation and is subject to change.]
Translates a string into a different language.
Syntax
URI
https://api.microsofttranslator.com/V1/Http.svc/GetLanguages
Parameters
| Parameter | Description |
|---|---|
appId |
A string representing the identifier of the calling application. |
Return Value
A list of language codes that are supported by the Translation Service.
Example
C#
string languageUri = "https://api.microsofttranslator.com/V1/Http.svc/GetLanguages?appId=myAppId";
WebRequest req = System.Net.WebRequest.Create(languageUri);
WebResponse resp = req.GetResponse();
Stream strm = resp.GetResponseStream();
StreamReader reader = new System.IO.StreamReader(strm);
while (!reader.EndOfStream)
{
Console.WriteLine("Language Code found: " + reader.ReadLine());
}