Skip to content

kelsmj/twitter_signature

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

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

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published