locked
how to use the access token in bing translation program? RRS feed

  • Question

  • 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.

     



    Sunday, November 6, 2011 4:24 AM

All replies