Recommend this page to a friend! |
Classes of Gideon Kombian | PHP Microsoft Bing Translate | README.md | Download |
|
Downloadms-translatorTranslate text using the Bing Translate API InstructionTranslate your texts using Microsoft's Bing Translation services HTTP API http://msdn.microsoft.com/en-us/library/ff512419.aspx The code is based on the one provided by Microsoft at the documentation, prepared for composer. In two lines, you can have a translation service working! Before working with the code, get your Access Token, using your MSN account. More info: http://msdn.microsoft.com/en-us/library/hh454950.aspx Don't get confused with the clientID. It's not the Customer ID nor your account key. The clientID is the text (possibly your app name or some plain-language text) that you specified when registering your application. You can view your client id https://datamarket.azure.com/developer/applications There is a free data tier of 2 million characters per month. Check https://datamarket.azure.com/account/datasets if you haven't used yet your monthly limit: InstallationWith ComposerThe easiest way to install is via composer. Create the following
then the code
for a list of all supported languages and codes go to |