S3
Using the Leviia S3 API - Python
To manage your S3 objects and buckets at Leviia (in Python), you need the following library : https://github.com/boto/boto3 You can install it with the following command : Start by building a customer object :Some readersManage your Storag3 identifiers via API
Using the API requires a valid token. Go to your Leviia Dashboard, then open the “API Tokens” menu. Click the “Create a token” button, choose a description (to identify it easily later), and set an expiration date. (https://storage.crisp.chat/users/helpdesk/website/-/7/1/8/1/7181a953295a4800/capture-decran-2Few readers
Leviia drive
Using the API Leviia Drive - Curl
Files can be sent and received directly from the command line (e.g. for scripting). Curl installation : Whatever your platform, there's a good chance that the Curl binary will be ported for it, so install it : https://curl.se/download.html. Once Curl is installed, use the following commands, replacing USER with your user name and PASSWORD with your application password. Send a file to Leviia :Few readersUsing the Leviia Drive API - PHP
Installing PHP and its dependencies : To install PHP on your environment, go to: https://www.php.net/manual/fr/install.php. Once your PHP environment is up and running (hello-world.php is up and running), install php-curl and SabreDAV (WebDAV client for PHP). Here's an example, to be adapted to your environment, under Linux (Debian) : Click here for SabreDAV documentation : https://sabre.io/dav/install/. YFew readersUsing the Leviia Drive Pro API - Python
Initialization : This part of the code must be at the beginning of your program. &x20;import json import requests domain = "cloud.leviia.com"; Your pro domain auth=('antoine', 'password'); admin user headers = "OCS-APIRequest": "true" Replace "domain", "antoine" and "password" with your domain name, username and password. Create a user :Few readersUsing the Leviia Drive API - Python
Initialization : This part of the code must be at the beginning of your program. Replace "user" and "password" with your login and your application password. List the contents of a folder :Few readersUsing the Leviia Drive API - Java/Android
Initialization : To manipulate your Leviia files from within a Java program, you first need to import the sardine library. Here's how to do it : Java : For Java, simply add these lines to your pom.xml : Android : For Android, simply open your Gradle file (application) and add :Few readers