Created
June 23, 2011 03:05
-
-
Save andrewxhill/1041819 to your computer and use it in GitHub Desktop.
Python Commmplish API Signature
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 md5 | |
#the API Secret for your Project | |
secret = '9393c2df-e1c8-457c-adc1-a5b75210d52f' | |
#the User email address you querying (all lowercase) | |
email = '[email protected]' | |
#concatenate the two parameters | |
sig_string = secret + email | |
#create md5 hash | |
m = md5.new() | |
m.update(sig_string) | |
#the API Signature | |
print m.hexdigest() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment