Skip to content

Instantly share code, notes, and snippets.

@cbare
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save cbare/b3c47d68333f2964b99b to your computer and use it in GitHub Desktop.

Select an option

Save cbare/b3c47d68333f2964b99b to your computer and use it in GitHub Desktop.
List Challenge Participants
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