Last active
September 7, 2016 08:44
-
-
Save takawitter/55fff4e9419e2c49ab2afc32a1b9d3c8 to your computer and use it in GitHub Desktop.
New Langrid service invocation API for JavaScript.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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