Azure marketplace https://datamarket.azure.com/dataset/bing/microsofttranslator To access Bing Translator, it must be authorized via OAuth, and an access_token.
Its an object that contains the security information for a login session identifying the user. How to get an access_token? You must register your application via https://datamarket.azure.com/developer/applications/
Client Secret Key which you’ll use further in your app. Write your Client ID and Application Name and a Redirect URI if available if not then write any valid URL
and reserved an access token let’s start developing the application 2- Drag and drop controls from the Toolbox 3- We will use 3 controls a TextBox to allow the user input string then a TextBlock to output the translated string and a button that when pressed the string will be processed for translation
response from the token after being processed We used the serializer here to read the response stream an then store it in a token The most important part is the translation URI which calls the translator service via a HttpWebRequest and sends the text that needs translation the last part of the URI is what decides the requested language for translation and the current language than the user used “&from=&to=ar” if we left the from empty it will auto detect the language used.
WebResponse as an XML then points to the First node to convert it to string and display it to the user. First we created a response string which carries the response stream Then it was parsed as an XML At last we used the Dispatcher.RunAsync to update part of the page only not to reload all of the page then the translated string appears finally in the text block