Skip to content

Instantly share code, notes, and snippets.

@takawitter
Last active September 7, 2016 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takawitter/55fff4e9419e2c49ab2afc32a1b9d3c8 to your computer and use it in GitHub Desktop.
Save takawitter/55fff4e9419e2c49ab2afc32a1b9d3c8 to your computer and use it in GitHub Desktop.
New Langrid service invocation API for JavaScript.
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="${langrid-address}/js"></script>
<script>
new LangridClientFactory({
apiKey: "${your-api-key}"
})
.create("${service-id}")
.translate("en", "ja", "Hello")
.done(function(res){
console.log(res.result);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment