GET /api/v1/myfiles
Shows files for the currently logged in user.

Shows files for the currently logged in user.

Examples

GET /myfiles

{
 "file_folders":[
   {
     "file_folder":{
       "id":"r2ehdnxai7",
       "name":"secret"
     }
   },
   {
     "file_folder":{
       "id":"7lbwy124w9",
       "name":"a-f"
     }
   },
   ...
 ],
 "uploads":[
   {
     "upload":{
       "id":"8m0lo691r2",
       "created_at":"2014-09-10T15:10:10.000-04:00",
       "title":"sad but with movement",
       "bytes":633856,
       "downloads":0,
       "hotlinks":0,
       "ext":"mp3"
     }
   },
   {
     "upload":{
       "id":"99llhi1de1",
       "created_at":"2014-09-10T16:54:56.000-04:00",
       "title":"Makefile",
       "bytes":217725,
       "downloads":0,
       "hotlinks":0,
       "ext":"mp3"
     }
   },
   ...
 ]
}

Supported Formats

json

GET /api/v1/file/:id
Shows the specified file object.

Shows the specified file object.

Examples

GET /file/28c9w3xrnd.json

{
 "id":"28c9w3xrnd",
 "created_at":"2012-03-12T19:29:35.000-04:00",
 "title":"Cynosure (Chris)",
 "bytes":4636833,
 "downloads":2126,
 "hotlinks":75641,
 "ext":"mp3",
 "hotlink_path":"http://k007.kiwi6.com/hotlink/28c9w3xrnd/Cynosure_Chris_.mp3",
 "user":{
    "username":"ChrisTM"
 },
 "comments":[
    {
       "comment":{
          "title":null,
          "comment":"Beautiful. Well done.",
          "user":{
             "username":"AssafKoss"
          }
       }
    },
    {
       "comment":{
          "title":null,
          "comment":"This was really great! I have no idea what the name should be, maybe what ever made you feel like composing it, should maybe be the name. But regardless, it was a great song and I really enjoyed it. Good work!",
          "user":{
             "username":"shyenne10"
          }
       }
    }
 ]
}

Supported Formats

json

Params

Param name Description
id
required

The id of the upload to retrieve.


Value: Must be a String