Latest Seletel Cloud Storage API docs : https://kb.selectel.ru/22058988.html
To add a dependency using Maven
How to setup Maven to use bintray repository
You need to create ~/.m2/settings.xml with this code
<?xml version="1.0" encoding="UTF-8" ?>
<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd'
xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray-pelenthium-maven</id>
<name>bintray</name>
<url>https://dl.bintray.com/pelenthium/maven</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray-pelenthium-maven</id>
<name>bintray-plugins</name>
<url>https://dl.bintray.com/pelenthium/maven</url>
</pluginRepository>
</pluginRepositories>
<id>bintray</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>bintray</activeProfile>
</activeProfiles>
</settings>
<dependency>
<groupId>com.github.pelenthium</groupId>
<artifactId>selectel-storage-client</artifactId>
<version>LATEST_VERSION</version>
<type>pom</type>
</dependency>
To add a dependency using Gradle:
repositories {
mavenUrl 'https://dl.bintray.com/pelenthium/maven'
}
compile 'com.github.pelenthium:selectel-storage-client:LATEST_VERSION'
First of all you need to sign up in selectel.ru
See slf4j
Authorization is initialization step
SelectelClient client = SelectelClientBuilder.create()
.authorize(username, password)
.build();
This code initializes and authorize with your credential