Skip to content

Instantly share code, notes, and snippets.

@megantaylor
Last active December 16, 2015 15:08
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 megantaylor/5453309 to your computer and use it in GitHub Desktop.
Save megantaylor/5453309 to your computer and use it in GitHub Desktop.
Get Meetup Groups by Member ID
<!DOCTYPE html>
<html>
<head>
<title>Meetup Groups by Member ID</title>
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$.getJSON("https://api.meetup.com/2/groups?callback=?&sign=true&member_id=MEMBER_ID&page=50&api&key=API_KEY&only=name,link",
function (data) {
var htmlString = "";
$.each(data.results, function (i, item) {
htmlString += '<h3><a href="' + item.link + '" target="_blank">' + item.name + '</a></h3>';
});
$('#groups').html(htmlString);});
});
</script>
</head>
<body>
<div id="groups"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment