Protonet supports the WebDAV protocol. You can access it under the following URL:
https://yourbox.protonet.info/dav
The API expects XML and responds with XML. WebDAV provides you with all features necessary to work with the Protonet file system (create, delete, list files/folders, ...). There are libraries/clients for almost every programming language that simplify working with the webdav server.
WebDAV authorization is done via Basic Access Authorization. User name is the user's first and last name concatenated by a dot (eg. john.doe). Password is the user's password on your Protonet box.
List all files in the root directory:
curl --user 'john.doe:secretpassword' -X PROPFIND https://yourbox.protonet.info/dav --upload-file - -H "Depth: 1" <<end
<?xml version="1.0"?>
<a:propfind xmlns:a="DAV:">
<a:prop><a:resourcetype/></a:prop>
</a:propfind>
end
- Ruby library for WebDAV: https://github.com/devrandom/net_dav
- PHP WebDAV client: http://sabre.io/dav/davclient/
- Java WebDAV client: https://github.com/lookfirst/sardine
- JavaScript WebDAV client: https://github.com/sara-nl/js-webdav-client