|
YFROGuploadAndPost
METHOD: uploadAndPosthttp://yfrog.com/api/uploadAndPost Use this method to upload a photo or video to yfrog and to send it as a status update to Twitter.
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> Sample error response: <?xml version="1.0" encoding="UTF-8"?>
<rsp stat="fail">
<err code="1001" msg="Invalid twitter username or password" />
</rsp>Error codes and their descriptions: URL uploads If URL specified in url parameter points to any media located on Imageshack/Yfrog servers (following forms are supported: and this media belong to you (caller) then no extra transload will be performed, you'll have a link to the existing media. |
Sign in to add a comment