code for uploading to twitter