Skip to content

Instantly share code, notes, and snippets.

View marccampbell's full-sized avatar

Marc Campbell marccampbell

View GitHub Profile
@marccampbell
marccampbell / pager.io examples
Created July 28, 2011 21:27
Creating Authorization Header for Pager.io API in Python
import base64
header = 'Basic ' + base64.b64encode('pager.io:1234567890')
print header
'Basic cGFnZXIuaW86MTIzNDU2Nzg5MA=='