locked
How to Obtain a Translator API Key? RRS feed

  • Question

  • I have looked everywhere but could not find a simple way -- or any way, for that matter -- to obtain the API key. I have purchased a subscription of Translator but failed to find any link pointing to it.

    Help is much appreciated!

    Chris

    Tuesday, December 6, 2011 12:04 AM

Answers

All replies

  • You can use oAuth and retrieve AccessTohen (look http://msdn.microsoft.com/en-us/library/hh454950.aspx).
    You need to use clientId an secretClient.
    Go to https://datamarket.azure.com/developer/applications/, register an application, write clientid (you can use whatever you want) and save the secretClient.

    To retrieve Bing AppId, go to Bing Developer site (https://it.ssl.bing.com/webmaster/developers) than add a new application.

    Tuesday, December 6, 2011 9:00 AM
  • You can use oAuth and retrieve AccessTohen (look http://msdn.microsoft.com/en-us/library/hh454950.aspx).
    You need to use clientId an secretClient.
    Go to https://datamarket.azure.com/developer/applications/, register an application, write clientid (you can use whatever you want) and save the secretClient.

    To retrieve Bing AppId, go to Bing Developer site (https://it.ssl.bing.com/webmaster/developers) than add a new application.

    Tuesday, December 6, 2011 9:00 AM
  • Hello Massimo,
    Thank you for your prompt reply.
    I am not sure that what I need is an AccessToken though. I have been using Google Translator API, and the process for obtaining its key was very straightforward: right after purchasing the service, a screen with the key was shown so I could copy it and paste it on a translation software I use (Wordfast Anywhere). 
    I am not familiar with some data Microsoft is requiring after clicking https://datamarket.azure.com/developer/applications/. For example, I have no idea what a URI is for.
    Tuesday, December 6, 2011 2:21 PM
  • Hi,
    in case of Translator Uri is not used.
    You must insert (it is mandatory) but it is not used.
    For example, I inserted "http://localhost" (just to insert something).
    Name and ClientId are mandatory.

    However, if you want to use appId, you can go to Bing developer page and creates ones!!

    Tuesday, December 6, 2011 7:23 PM
  • Hi Massimo,

    thanks you for the very helpful answers. Just want to point out that the appid mechanism is deprecated, and we advise strongly against writing new applications using this mechanism. The reason is that it is quite insecure. Using the AccessToken method you define your own client ID and client secret, and you can change or revoke it at any time. It is, admittedly, a little more complex to use.

    We'll post examples in other languages besides C# soon.

    Note that the API takes an Access Token wherever an "appid" is requested.

    Chris Wendt
    Microsoft Translator


    Thursday, December 8, 2011 3:31 PM
  • OK,
    I supposed that appId is deprecate but, if not mistaken, it isn't writen anywhere so seems to be an alternative to Access Token.
    If I cannot use appId, how can I retrive Access Token in an AJAX scenarios? The javascript code http://msdn.microsoft.com/en-us/library/ff512385.aspx use appId but not use access token.
    Thanks a lot

    Max

    Thursday, December 8, 2011 4:13 PM
  • Hi Max,

     

    the parameter is called appid and it consumes what we describe as Access Token. New Bing AppIds will stop working in February. The Access Token mechanism is required if you need to subscribe to a volume of more than 2 million characters a month. I forgot to mention that in my previous response.

    Makes sense?

    Chris Wendt
    Microsoft Translator


    Thursday, December 8, 2011 5:42 PM
  • Thank you.
    It is clear.

    Max

    Thursday, December 8, 2011 7:29 PM
  • I have looked everywhere but could not find a simple way -- or any way, for that matter -- to obtain the API key. I have purchased a subscription of Translator but failed to find any link pointing to it.

    Help is much appreciated!

    Maria


    Wednesday, April 25, 2012 1:01 PM
  • Hi Chris,

    I am new on this forum, but I do have the same problçem as you do.

    anyone can give us a help?

    Thanks

    M aria


    • Edited by Maria Ivo Wednesday, April 25, 2012 1:03 PM
    Wednesday, April 25, 2012 1:02 PM
  • I've written up steps to get the token from the Windows Azure Marketplace here:

    http://www.netnavi.tv/2012/04/22/getting-started-with-microsoft-translator-in-the-azure-data-market/

    I'm going to be continually updating with samples on how to use it, but check my postings in this forum for some...

    Laurence


    //Laurence Moroney: www.netnavi.tv // Author of 'Introducing Silverlight' series and much more // @lmoroney

    Wednesday, April 25, 2012 2:08 PM