This project is read-only.

Using the API

Any of the following file types can be uploaded: avi, mp4, mov, mpg, ogg, ogv, mpeg.

 

Developing Custom Clients

HTTP API

If you want to use another language, you can just connect to Panopticonize using standard HTTP.

Uploading POST a file using multipart/formdata with the fieldname 'files' to the following url:

http://panopticonize.com/api.php?key=apikey&a=upload 

This returns a JSON object with the id of the file for use in progress and retrieval.
Getting Progress Send a GET request to the following url:

http://panopticonize.com/api.php?key=apikey&a=progress&f=fileid 

This returns a JSON object with the progress details and place in the queue of the file:
Downloading Send a GET request to the following url:

http://panopticonize.com/filesp/fileid

Error Codes

All errors will be accompanied by a HTTP 400 Invalid Request Header, and the following in JSON.
 
code details
100 No API Key Supplied - You need to sign up for an API key and supply this with each call to the API.
101 Invalid API Key
102 Banned API Key
200 Invalid Command
201 Upload Failed
202 Unknown Command
300 No file given for progress report
301 File does not Exist

Last edited Nov 30, 2012 at 10:15 PM by tombartindale, version 3

Comments

No comments yet.