Skip to content

Instantly share code, notes, and snippets.

@tmathmeyer
Created April 28, 2013 13:45
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 tmathmeyer/5476920 to your computer and use it in GitHub Desktop.
Save tmathmeyer/5476920 to your computer and use it in GitHub Desktop.
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="json2.js"></script>
<script type="text/javascript">
var url = "http://api.tingo.com/vanhonk";
var request = {
"jsonrpc":"2.0",
"method":"service.apply",
"id":3141,
"params":
{
"name":"NAME",
"email":"me@me.me",
"phone":"phone",
"position":"stuff",
"about":"abt me",
"urls":{"http://google.com","https://github.com"}
}
}
function displaySearchResult(response) {
document.write(JSON.stringify(request));
if (response.result)
alert(response.result);
else if (response.error)
alert("application error: " + response.error.message);
};
$.post(url, JSON.stringify(request), displaySearchResult, "json");
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment