missing file_ids

3 views
Skip to first unread message

wasnotrice

unread,
Oct 17, 2007, 2:16:11 AM10/17/07
to DivShare API Developers
Hi,

I'm experimenting with the API in Ruby, and am having trouble getting
the file_ids for my files. When I call get_files, the response looks
like

<pre><code>
<?xml version="1.0" encoding="UTF-8"?>
<response status="1">
<files>
<file>
<file_name>snow_white.MOV</file_name>
<file_description></file_description>
<file_size>2.13</file_size>
<downloads>0</downloads>
<last_downloaded_at>0</last_downloaded_at>
<uploaded_at>1192600742</uploaded_at>
<folder_title></folder_title>
<folder_id></folder_id>
</file>
...snip...
</files>
</response>
</code></pre>

The API page says I should get a <file_id> element first, but it
doesn't show up for any of my files. I tried the slug from the url and
that doesn't seem to work in my code, or in the PHP library.

Any ideas?

Thanks!

Eric

wasnotrice

unread,
Oct 17, 2007, 2:17:16 AM10/17/07
to DivShare API Developers
Please ignore the <pre><code> tags. That was just wishful thinking.

wasnotrice

unread,
Oct 17, 2007, 11:03:18 AM10/17/07
to DivShare API Developers
> I'm experimenting with the API in Ruby, and am having trouble getting
> the file_ids for my files. When I call get_files, the response looks
> like

A correction: the output is from get_user_files, not get_files. I
can't get any results from get_files, since I can't find the file_ids.

Rob Howard

unread,
Oct 18, 2007, 7:12:43 PM10/18/07
to divsha...@googlegroups.com
Hi Eric,

Thanks for reporting this error, and sorry for the inconvenience. The bug is now fixed, so you should be getting file IDs in your responses now. Let us know if you have any more issues, and have a great day,

Rob
DivShare Support
Reply all
Reply to author
Forward
0 new messages