Skip to content

Instantly share code, notes, and snippets.

@takawitter
Last active Sep 7, 2016
Embed
What would you like to do?
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