Created
April 28, 2013 13:45
-
-
Save tmathmeyer/5476920 to your computer and use it in GitHub Desktop.
This file contains 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
<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