Commplish Bitcoin Awarding API
✓ Published0🌍 Public
Aandrewxhill
Last edited Jun 26, 2011
Created on Jun 26, 2011
This example shows a Python script that awards Bitcoin to a user through the Commplish API. It constructs an API signature by concatenating a project secret with the user’s email, then hashing the result with MD5. The script also hashes the email separately to create a user identifier, and sends a POST request with the user, project ID, and signature to the `/public/user/give-bitcoin` endpoint. The response is returned as JSON, revealing the recipient’s Bitcoin address. The code uses the `urllib`, `urllib2`, and `md5` standard library modules.
AI-generated description