locked
REQUEST TO THE TOKEN SERVICE for BING TRANSLATOR access token RRS feed

  • Question

  • Can someone please give me a sample of his code in OBJECTIVE C in which he/she sends the request to the token service. I've been struggling with this problem for days now. I got the client id and secret  and registered my app  and followed all the instuctions from every possible forum on the net and nothing seems to help me. The request that i've been sending lookes like this :  https://datamarket.accesscontrol.windows.net/v2/OAuth2-13?grant_type=client_credentials&client_id=d6894bba-7k6c-49bf-ba8b-d01050057d83&client_secret=nOzeykgEbajk8TyAJtYaZ9pqzoDs4q6AK5hfGTrRzZL=&scope=http://api.microsofttranslator.com

    I got the URL encoding covered and everything, still doesn't work... I'll post the error later it said something about invalid request .Please help me :)

    Wednesday, February 27, 2013 8:27 PM

All replies

  • Hi Galadriel14,

    Would the following sites be helpful?

    http://blogs.msdn.com/b/translation/p/gettingstarted1.aspx

    http://blogs.msdn.com/b/translation/p/gettingstarted2.aspx

    Our SDK site for obtaining access token is available here.

    Let us know how it goes.  Thanks.  Takako (Microsoft Translator team)
    Wednesday, February 27, 2013 9:32 PM
  • I've already read all this and tried 100 times to interpreatate it in objective c . I believe the whole problem is in my   request url  meant to get the token ,because i tried  loading it in browser  and it gives me errors too . I'm really clueless .
    Wednesday, February 27, 2013 10:11 PM
  • I've solved the problem .. did't read the pass in the HTTP request body part.  
    Thursday, February 28, 2013 11:21 AM
  • Hi Galadriel14, Good to hear that you've solved the problem!  Takako (Microsoft Translator team)
    • Proposed as answer by Takako Aikawa Thursday, February 28, 2013 3:42 PM
    Thursday, February 28, 2013 3:42 PM
  • can you explain it in details? what does Galadriel14 said "I've solved the problem .. did't read the pass in the HTTP request body part.  "    mean??


    • Edited by toanso Wednesday, March 13, 2013 10:34 AM wrong words
    Wednesday, March 13, 2013 10:20 AM