Commplish Badge Awarding API
✓ Published0🌍 Public
Aandrewxhill
Last edited Jun 23, 2011
Created on Jun 23, 2011
This example demonstrates how to programmatically award a badge to a user through the Commplish API. It constructs an authentication signature by concatenating the project secret and user email, then hashing them with Python’s `md5` module. The code builds a URL-encoded request using `urllib.urlencode` and sends it via `urllib2.Request` to the `give-badge` endpoint, passing parameters for the user, project, badge, and collection. The response is read and output, completing the badge-awarding workflow.
AI-generated description