Last active
August 29, 2015 14:15
-
-
Save cbare/b3c47d68333f2964b99b to your computer and use it in GitHub Desktop.
List Challenge Participants
This file contains hidden or 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
| import synapseclient | |
| syn = synapseclient.Synapse() | |
| syn.login() | |
| # ID for challenge participants team | |
| team_id = ?? | |
| results = list(syn._GET_paginated('/teamMembers/{id}'.format(id=team_id))) | |
| print "Number of participants:", len(results) | |
| for result in results: | |
| member = result['member'] | |
| print member.get('ownerId',''), "("+member.get('userName','')+")", member.get('firstName', ''), member.get('lastName', '') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment