Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

twitter_signature

Sample Python program that shows you how to correctly authorize and sign a request to the Twitter API

This sample code is based on the Creating a Signature and Authorizing Request documents.

I assume you know how to generate the proper keys, tokens and secrets for your app

Setting up the environment:

$ git clone git://github.com/kelsmj/twitter_signature.git
$ mkvirtualenv twitter_signature
$ pip install -r requirements.txt
$ touch settings.cfg

Populate the settings.cfg with the following:

[Keys]
twitter_consumer_secret: YOUR_CONSUMER_SECRET
twitter_consumer_key: YOUR_CONSUMER_KEY
access_token: YOUR_ACCESS_TOKEN
access_token_secret: YOUR_ACCESS_TOKEN_SECRET

Run the program:

$ python twitter_signature.py

About

Sample Python program that shows you how to correctly sign a request to the Twitter API

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.