Comment 1 for bug 651029

Revision history for this message
Dmitry Korotovsky (rmpic30) wrote :

API:
request to http://itmages.com/api/add

POST: name="UFileManager[picture]"
 - name of picture.
POST: name="UFileManager[picture]"; filename="123.png" - as file.

ex: http://bazaar.launchpad.net/~itmages/itmages/itmages-nautilus-extension/annotate/head%3A/itmages/iomod.py#L117

response:
<?xml version="1.0" encoding="UTF-8"?>
<response>
    <status>ok</status>
    <reason></reason>
    <obj>
        <full>i/10/0929/h_1285779694_135e50215f.png</full>
        <thumb>i/10/0929/s_1285779694_135e50215f.png</thumb>
        <mime>image/png</mime>
        <created>2010-09-29 19:01:34</created>
        <width>1024</width>
        <height>600</height>
        <size>130122</size>
        <id>61738</id>
        <key>135e5021</key>
    </obj>
</response>