TwentyThree Developer APIAPI Method: /api/photo/attachment/list

API Method: /api/photo/attachment/list

Last updated on June 3, 2013.

Return a list of files attached to a video.

Parameters

ParameterDescription
photo_id (required) The ID of the video to fetch attachments for.
token (required) The corresponding token for the photo_id.
The token may be explicitly time-limited in which case expire becomes a required parameter.

Permission level

The minimum required permission level is:

none

For non-public sites, the minimum level is:

anonymous

Example XML Response

<response status="ok" permission_level="anonymous" total_count="2" cached="0">
  <attachment filename="23 video hosting setup.pdf" 
    size="43830" 
    url="/7340/.../file/23+video+hosting+setup%2epdf"/>
  <attachment filename="terms of service, 23 video enterprise (draft).pdf" 
    size="71155" 
    url="/7340/.../file/terms+of+service%2c+23+video+enterprise+%28draft%29%2epdf"/>
</response>

Example JSON Response

{
  "status": "ok", 
  "permission_level":"anonymous",
  "cached":"0",
  "attachments":[
    {"filename": "23 video hosting setup.pdf", 
     "size": "43830", 
     "url": "/7340/.../file/23+video+hosting+setup%2epdf"
    },
    {"filename": "terms of service, 23 video enterprise (draft).pdf", 
     "size": "71155", 
     "url": "/7340/.../file/terms+of+service%2c+23+video+enterprise+%28draft%29%2epdf"
    }],
  "p": "1",
  "size": "1",
  "total_count": "2",
  "site": ...,
  "endpoint": "/api/photo/attachment/list"

y}