Created
July 26, 2016 07:52
-
-
Save hatimn02/7a7de5ddeefe31300fd463bdaa4e85ab to your computer and use it in GitHub Desktop.
HTML with jQuery sample code
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> | |
<script> | |
$(document).ready(function(){ | |
$("button").click(function(){ | |
$.post("http://flow.viasocket.com/trigger/sample_url/slack_integration"+"?Auth-Key="+"YOUR_AUTHKEY", | |
{ | |
name: "Donald Duck", | |
city: "Duckburg" | |
}); | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
<button>Invoke Socket Api</button> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment