Skip to content

Instantly share code, notes, and snippets.

View AlexanderKozhevin's full-sized avatar
💭
working

Alexander Kozhevin AlexanderKozhevin

💭
working
View GitHub Profile
@AlexanderKozhevin
AlexanderKozhevin / hello_world.c
Created October 19, 2017 01:25 — forked from kripken/hello_world.c
Standalone WebAssembly Example
int doubler(int x) {
return 2 * x;
}
<html>
<head>
<title>API Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
var accessToken = "<your agent's client access token>";
var baseUrl = "https://api.api.ai/v1/";