Skip to content

Instantly share code, notes, and snippets.

@OsQu
Created February 11, 2014 15:31
Show Gist options
  • Save OsQu/8937111 to your computer and use it in GitHub Desktop.
Save OsQu/8937111 to your computer and use it in GitHub Desktop.
Fetching flows using API Token
<html>
<body>
<ul id="list">
</ul>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script>
var token = "MY_TOKEN";
$.ajax({
url: "https://api.flowdock.com/flows",
type: "GET",
headers: { "Authorization": "Basic " + btoa(token) }
}).done(function(flows) {
$.each(flows, function(index, flow) {
$("#list").append($("<li>").text(flow.name));
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment