Export to GitHub

imageshackapi - uploadAndPostToWozai.wiki


METHOD: uploadAndPostToWozai

http://yfrog.com/api/uploadAndPostToWozai

Use this method to upload a photo or video to yfrog and to send it as an update to Wozai.cc.
Request fields
(post data should be formatted as multipart/form-data)

  • media - Binary image or video data; either media or url parameter is required
  • url - URL of image or video; either media or url parameter is required
  • username (required) - !Wozai username
  • password (required) - !Wozai password
  • message (optional) - Message to post to as status update. The URL of the image is automatically added.
  • tags (optional) - comma-separated list of tags. (tags can also include geo tags)
  • public (optional) - Public/private marker of your video/picture. yes means public (default), no means private
  • key - DeveloperKey.

Sample response:

<?xml version="1.0" encoding="UTF-8"?> <rsp stat="ok"> <statusid>BxgdOrKh</statusid> <userid>vzalivatest</userid> <mediaid>7gtzmz</mediaid> <mediaurl>http://yfrog.us/7gtzmz</mediaurl>

Sample error response: <?xml version="1.0" encoding="UTF-8"?> <rsp stat="fail"> <err code="1001" msg="Invalid username or password specified"/> </rsp>

Error codes and their descriptions:
1001 - Invalid !Wozai username or remote key
1002 - Image/video not found
1003 - Unsupported image/video type
1004 - Image/video is too big

NOTE: this method is experimental and might change in future without notice!