folder content

tryp's Avatar

tryp

27 May, 2011 04:33 PM via web

What is the parameter(s) to list the content of a folder.

I tried:
id with the list method from files

so something like
{id

  1. 2 Posted by tryp on 27 May, 2011 04:37 PM

    tryp's Avatar

    sry it seems to have gobbled up my example

    i should have checked out the formatting guide oops :(

    {"id":"98765"}

  2. 3 Posted by tryp on 31 May, 2011 07:00 AM

    tryp's Avatar

    just updating my details as i got them wrong in the other 2 posts

  3. Support Staff 4 Posted by hasan on 31 May, 2011 03:25 PM

    hasan's Avatar

    Hi Tryp,

    Do you still need help, or is everything fine?

    Also I'm curious, what are you building with the API?

    Cheers.

    --
    Hasan Yalcinkaya
    Co-founder, http://put.io

  4. 5 Posted by tryp on 31 May, 2011 03:33 PM

    tryp's Avatar

    hay,

    I am building an ios app..the one i mentioned before

    ya still struggling with the sub folder list

    i can get it to return the root content but i cant access the content of a sub folder i tried passing in the id as a parameter but that just returns the folder with that id i need the list of content in that folder

    thx :)

  5. 6 Posted by tunix on 31 May, 2011 03:45 PM

    tunix's Avatar

    Hello tryp,

    First of all I'd like to thank you for your efforts for developing an iOS
    app for put.io. Maybe we can also help you in our spare time if your source
    code would be open. APIv1 has an unexpected way of getting folder listing.
    You can learn how to do it in our XBMC app's code at
    https://github.com/tunix/xbmc.put.io/blob/master/resources/lib/common.py ,
    see line 64.

    When we get our hands on APIv2, all your problems will be over including
    such awkward ways of pulling things and the documentation.

    ---
    Quis custodiet ipsos custodes?

  6. 7 Posted by tryp on 31 May, 2011 03:59 PM

    tryp's Avatar

    Sweet that totally worked

    i needed to set the parent_id instead of the id which is what i was doing

    api v2 when is that coming out? beta access ;) ?

    no worries man doing it for me too as much as for you guys.

    ya i can put the source up once i have api access layer ready...i am not writing a full on implementation but enough to get the app working.

  7. 8 Posted by tunix on 31 May, 2011 04:16 PM

    tunix's Avatar

    Hello tryp,

    APIv2 is still in decision process. We currently have our hands full with
    auto extraction, rename for files and a lot more. Once all of these changes
    are ready for production (very soon I can say) we'll get our hand on APIv2
    which will also include a huge rewrite of our infrastructure at some time.

    ---
    Quis custodiet ipsos custodes?

  8. 9 Posted by tryp on 01 Jun, 2011 07:54 AM

    tryp's Avatar

    fair enough

    good luck with the updates :)

  9. tunix closed this discussion on 01 Jun, 2011 07:56 AM.

Comments are currently closed for this discussion. You can start a new one.