Tweetie 2.x allows you to specify a custom endpoint for image hosting. The endpoint should mimic the TwitPic '/upload' API.

Example


https://something.com/twitpic_compatible_endpoint.php

Tweetie will POST the following parameters as multipart/form-data:

  • username - Twitter username
  • password - Twitter password (plain text, thus HTTPS is strongly recommended, and may be required by future versions of Tweetie)
  • source - the string, "tweetie"
  • message - associated message text, available in 2.1.0 and later
  • media - raw image data

Tweetie expects the following response:


<mediaurl>http://something.com/xxxx</mediaurl>

The tag may be embedded in other tags, and may have siblings. Everything but the mediaurl tag will be ignored.

Do NOT post any text to Twitter on the users' behalf. Tweetie will take the response media URL, append it to the message and do the post to Twitter.