Skip to content

pelenthium/selectel-storage-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java SDK (unofficial) for Seletel Cloud Storage API Build Status

Latest Seletel Cloud Storage API docs : https://kb.selectel.ru/22058988.html

1. Prerequisites

2. Latest release

Latest version: Download

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'

3. Prepare for using

First of all you need to sign up in selectel.ru

4. Logging

See slf4j

5. Initialization and Authorization

Authorization is initialization step

    SelectelClient client = SelectelClientBuilder.create()
                    .authorize(username, password)
                    .build();

This code initializes and authorize with your credential

6. API Requests

About

Java client for Selectel cloud storage

Resources

License

Stars

Watchers

Forks

Packages

No packages published