----------------------------------------------------- Create public invite only group -----------------------------------------------------""" response = mendeley.create_group(group=json.dumps({'name':'Public invite only group', 'type': 'invite'})) pprint(response) print """ ----------------------------------------------------- Create public open group -----------------------------------------------------""" response = mendeley.create_group(group=json.dumps({'name':'My awesome public group', 'type': 'open'})) pprint(response) print """ ----------------------------------------------------- Create private group -----------------------------------------------------""" response = mendeley.create_group(group=json.dumps({'name':'Private group test', 'type': 'private'})) pprint(response) print """ ----------------------------------------------------- Current user's contacts -----------------------------------------------------""" response = mendeley.contacts() pprint(response)