Last active
December 16, 2015 15:08
-
-
Save megantaylor/5453309 to your computer and use it in GitHub Desktop.
Get Meetup Groups by Member ID
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> | |
<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