#!/usr/bin/env python
#-*- coding: utf-8 -*-

import sys
import twoauth
import twoauth.twitpic

if __name__ == "__main__":
    ckey = sys.argv[1]
    csecret = sys.argv[2]
    atoken = sys.argv[3]
    asecret = sys.argv[4]
    filepath = sys.argv[5]
    
    # from python-twoauth
    apikey = "<KEY>"
    
    oauth = twoauth.oauth(ckey, csecret, atoken, asecret)

    twpic = twoauth.twitpic.Twitpic(oauth, apikey)
    ret = twpic.upload(open(filepath, "rb"), "らりるれろ")
    
    print ret

#!/usr/bin/env python
#-*- coding: utf-8 -*-

import sys
import twoauth
import twoauth.twitpic

if __name__ == "__main__":
    ckey = sys.argv[1]
    csecret = sys.argv[2]
    atoken = sys.argv[3]
    asecret = sys.argv[4]
    filepath = sys.argv[5]
    
    # from python-twoauth
    apikey = "<KEY>"
    
    oauth = twoauth.oauth(ckey, csecret, atoken, asecret)

    twpic = twoauth.twitpic.Twitpic(oauth, apikey)
    ret = twpic.upload(open(filepath, "rb"), "らりるれろ")
    
    print ret

#!/usr/bin/env python #-*- coding: utf-8 -*- # from python-twoauth