Upload via API

From Wikanual

Jump to: navigation, search

you can use the INTERDUBS python API [upload_file_into_idx.py] to upload a file into INTERDUBS.

include [interdubs_api.py]

The call expects at least three parameters:

1) the idx-api-key ( create one under utilities -> api key in the admin interface ) 

2) the source file

3) the target folder in INTERDUBS. 


An example:

If you have made an API key in your admin interface that is V93jxC23rpYl3ACZzsqz you files is at /your/local/file.mov and you like to put it into the folder /clientreview in INTERDUBS then you would run

./upload_file_into_idx.py V93jxC23rpYl3ACZzsqz /your/local/file.mov /clientreview


Please note that if you would run

./upload_file_into_idx.py V93jxC23rpYl3ACZzsqz /your/local/file.mov /clientreview/newfile.mov

INTERDUBS would actually create a folder called newfile.mov inside of /clientreview and puts the file.mov inside of that folder.


This covers just the basic functionality of uploads via the API. You can of course set all meta requested during the upload as well.

Personal tools