Skip to content

Commit

Permalink
Update microsoft/translator/microsoft.translator.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
pjdonnelly committed Aug 23, 2012
1 parent c9e3173 commit 7af6148
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions microsoft/translator/microsoft.translator.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
</inputs>
<execute>
<![CDATA[
var params = "client_id=" client_id "&client_secret=" client_secret "&scope=" scope "&grant_type=" grant_type;
var params = "client_id="+client_id+"&client_secret="+client_secret+"&scope="+scope+"&grant_type="+grant_type;
var resp = y.rest("https://datamarket.accesscontrol.windows.net/v2/OAuth2-13/").accept("application/json").contentType("application/x-www-form-urlencoded").post(params).response;
var MSTranslate = y.rest("http://api.microsofttranslator.com/v2/Http.svc/Translate?text=" text "&from=" from "&to=" to).header("Authorization","Bearer " resp.access_token).get().response;
var MSTranslate = y.rest("http://api.microsofttranslator.com/v2/Http.svc/Translate?text="+text+"&from="+from+"&to="+to).header("Authorization","Bearer " +resp.access_token).get().response;
response.object = MSTranslate;
]]>
</execute>
Expand Down

0 comments on commit 7af6148

Please sign in to comment.