I'm using python-requests to get an access_token from Twitter using xAuth and their private keys. Currently, an issue is that I don't know how to format this header:
Authorization: OAuth oauth_consumer_key="key_here",oauth_nonce="72393267",oauth_signature="signature_here",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1383672378",oauth_version="1.0"
Currently I'm formatting it as follows:
{'Authorization': 'OAuth', 'oauth_consumer_key': 'dWW6V8isvSGRL4qbElrGw', 'oauth_nonce': params['oauth_nonce'], 'oauth_signature': '', 'oauth_signature_method': 'HMAC-SHA1', 'oauth_timestamp': params['oauth_timestamp'], 'oauth_version': '1.0' }