Skip to content

Instantly share code, notes, and snippets.

@hatimn02
Created July 26, 2016 07:52
Show Gist options
  • Save hatimn02/7a7de5ddeefe31300fd463bdaa4e85ab to your computer and use it in GitHub Desktop.
Save hatimn02/7a7de5ddeefe31300fd463bdaa4e85ab to your computer and use it in GitHub Desktop.
HTML with jQuery sample code
<!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