how to use the access token in bing translation program?
-
2011년 11월 6일 일요일 오전 4: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.
- 편집됨 i very very very love you 2011년 11월 6일 일요일 오전 4:25
- 편집됨 i very very very love you 2011년 11월 6일 일요일 오전 4:26
모든 응답
-
2011년 11월 7일 월요일 오전 12:48소유자
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 -
2011년 11월 7일 월요일 오전 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?
- 답변으로 제안됨 Microsoft TranslatorOwner 2011년 11월 16일 수요일 오후 5:10
-
2011년 11월 16일 수요일 오후 5:10소유자
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---