METHOD: uploadAndPost

http://yfrog.com/api/uploadAndPost

Use this method to upload an image to Yfrog and to send it as a status update to Twitter.

Request fields

(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.

Sample response:

<?xml version="1.0" encoding="UTF-8"?>
<rsp status="ok">
 <statusid>1111</statusid>
 <userid>11111</userid>

 <mediaid>abc123</mediaid>
 <mediaurl>http://yfrog.com/abc123</mediaurl>
</rsp>

Error codes and their descriptions:

1001 - Invalid twitter username or password
1002 - Image not found
1003 - Unsupported image type
1004 - Image is too big	
© 2003-2009 ImageShack Corp. All rights reserved.
Link to Yfrog  |  API  |  Link to ImageShack  |  Learn about ImageShack  |  Advertise on ImageShack  |  Customer Service
Report Abuse or Request Deletion  |  Marketing Opportunities  |  Contact ImageShack