Skip to content
wls10 edited this page Aug 5, 2013 · 2 revisions

Pi Media APIs

upload($meta, $options = array())

  • $meta
    • uid: user id
    • title:
    • path: logical or absolute path to file
    • description:
  • $options
    • dir: folder of the file
    • types: allowed file format

getAttributes($id,$attribute)

  • $id: file id
  • $attribute: name of attribute

getStatistics($id,$statistics)

  • $id: file id
  • $attribute: name of statistics

getUrl($id)

  • $id: file id

edit($title,$description,$path)

  • $title: file title
  • $description: file description
  • $path: logical or absolute path to file

download($id)

  • $id: file id

delete($id)

  • $id: file id

search($title,$description,$time_upload)

  • $title: file title
  • $description: file description
  • $time_upload: time for file to upload

addImage($meta, $options = array())

addFile($meta, $options = array())

getImage($id)

resize($width,$height)

  • $width: target width
  • $height: target height

crop($x, $y, $width, $height)

  • $x: x coordinates of starting point
  • $y: y coordinates of starting point
  • $width: remaining width
  • $height: remaining height
Clone this wiki locally