Skip to content

Instantly share code, notes, and snippets.

@marccampbell
Created July 28, 2011 21:27
Show Gist options
  • Save marccampbell/1112608 to your computer and use it in GitHub Desktop.
Save marccampbell/1112608 to your computer and use it in GitHub Desktop.
Creating Authorization Header for Pager.io API in Python
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