how to use the access token in bing translation program?
-
6 noiembrie 2011 04:24
hi:
i post these texts to Bing translate API address : http://api.microsofttranslator.com/v2/Http.svc/TranslateArray
<?xml version='1.0'?> <TranslateArrayRequest> <AppId>3D9A7F3************************BFD849</AppId> <From>en</From> <Texts> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">good products</string> </Texts> <To>fr</To> </TranslateArrayRequest>
Then i can get the correct result.Now, I want to use Access Token function, what the texts i will POST to this address ?
i think need post these texts:
<?xml version='1.0'?> <TranslateArrayRequest> <clientId>001</clientId> <clientSecret>+PXAk9cLwkfDQ**************UoYEIfPpUG0EA=</clientSecret> <AppId>3D9A7F3************************BFD849</AppId> <From>en</From> <Texts> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">good products</string> </Texts> <To>fr</To> </TranslateArrayRequest>
is it correct? please tell me . thanks.
- Editat de i very very very love you 6 noiembrie 2011 04:25
- Editat de i very very very love you 6 noiembrie 2011 04:26
Toate mesajele
-
7 noiembrie 2011 00:48Proprietar
Hi Very,
first, you obtain an access token from Azure Marketplace, then you pass the Access Token to the Microsoft Translator API in the "appid" parameter.
The steps are described in the example at this location: http://msdn.microsoft.com/en-us/library/hh454950.aspx.
Let us know if this helps,
Chris Wendt
Microsoft Translator -
7 noiembrie 2011 11:04
Thank you very much.
yes, i already had an access tokey from Azure Marketplace.
so, just tell me Post what texts to this address: http://api.microsofttranslator.com/v2/Http.svc/TranslateArray
such as an XML format.
becarse i don't know ASP language and C# language.
do you have PHP language example?
- Propus ca răspuns de Microsoft TranslatorOwner 16 noiembrie 2011 17:10
-
16 noiembrie 2011 17:10Proprietar
Hi Very love you,
The site below might be helpful for you. Take a look. Thanks for using Microsoft Translator!
http://www.blinkingduck.co.uk/2011/09/microsoft-translator-and-php/
Takako --Microsoft Translator Team---