PsychedelicReaction
June 9th, 2008, 04:05 AM
I'm creating a small script to take a picture from my webcam and publish it directly to twitter through twitpic.
twitpic's api for upload pictures is:
Fields to post in
(post data should be formatted as multipart/form-data):
- media (required) - Binary image data
- username (required) - Twitter username
- password (required) - Twitter password
- message (optional) - Message to post to twitter. The URL of the image is automatically added.
since i'm a noob, i don't know how to sendthe binary data in the curl command. someone could help me? thanx!
twitpic's api for upload pictures is:
Fields to post in
(post data should be formatted as multipart/form-data):
- media (required) - Binary image data
- username (required) - Twitter username
- password (required) - Twitter password
- message (optional) - Message to post to twitter. The URL of the image is automatically added.
since i'm a noob, i don't know how to sendthe binary data in the curl command. someone could help me? thanx!