Created
July 28, 2011 21:27
-
-
Save marccampbell/1112608 to your computer and use it in GitHub Desktop.
Creating Authorization Header for Pager.io API in Python
This file contains 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 base64 | |
header = 'Basic ' + base64.b64encode('pager.io:1234567890') | |
print header | |
'Basic cGFnZXIuaW86MTIzNDU2Nzg5MA==' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment