My favorites | Sign in
Project Logo
                
Show all Featured downloads:
python-twitpic.zip
Feeds:
People details
Project owners:
  macmichael01

Usage

import twitpic
twit = twitpic.TwitPicAPI('USERNAME', 'PASSWORD')
twitpic_url = twit.upload('FILE_LOCATION')
# Post to Twitter
#twitpic_url = twit.upload('FILE_LOCATION', post_to_twitter=True)
#twitpic_url = twit.upload('FILE_LOCATION', message='messages rock!', post_to_twitter=True)
print twitpic_url

Usage via Commandline

$ twitpic -h

Usage: twitpic -u USER_NAME options IMG_PATH

Options:

-h, --help show this help message and exit

-u USER, --user=USER Twitpic user name

-p PASSWD, --passwd=PASSWD Twitpic password

-b, --both post to twitter together

-m MSG, --msg=MSG message









Hosted by Google Code