Git Product home page Git Product logo

ksc-sdk-java's Introduction

KSC SDK for Java

Table of Contents

  • Requirements
  • Usage
  • API Dosc
  • Note

Requirements

运行 SDK需要jdk Java 1.6+. 你可以下载最新的版本: http://developers.sun.com/downloads/.

Usage

  • Getting Started
  • Example

Getting Started

Install the SDK

在 GitHub 获取SDK : [KSC SDK for Java (GitHub)][ksc-sdk-java-github].

在工程根目录下执行:

 mvn clean install
工程使用sdk

建议使用Maven构建自己的项目,导入[ksc-sdk-java][ksc-sdk-java-github],添加需要的相应模块的依赖,示例如下:

Importing the pom
<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>com.ksc</groupId>
	  <artifactId>ksc-sdk-java-bom</artifactId>
	  <version>0.1.7</version>
	  <type>pom</type>
      <scope>import</scope>
    </dependency>
  </dependencies>
</dependencyManagement>
Using the SDK Maven modules
<dependencies>
  <dependency>
    <groupId>com.ksc</groupId>
	<artifactId>ksc-sdk-java-kec</artifactId>
  </dependency>
</dependencies>
Credentials 配置

本地文件配置:

 ~/.aws/credentials on Linux, OS X or unix
 C:\Users\USERNAME\.aws\credentials on Windows

该文件包含下述内容:

[default]
aws_access_key_id = your_access_key_id
aws_secret_access_key = your_secret_access_key

如不通过本地文件读入ak和sk信息,则需要在执行的类文件中增加以下代码

AWSCredentials credentials = new BasicAWSCredentials(aws_access_key_id, aws_secret_access_key);

Example

可以在[user guide][example]查看更多详细信息

API Docs

  • [KEC OpenAPI][KECOpenAPI]
  • [VPC OpenAPI][VPCOpenAPI]
  • [EIP OpenAPI][EIPOpenAPI]
  • [SLB OpenAPI][SLBOpenAPI]
  • [VCS OpenAPI][VCSOpenAPI]

Features

Note

  • httpclient 建议不要手动指定httpclient版本,依赖ksc-sdk-java工程管理的httpclient版本即可, 确实需要指定的话, 版本至少是4.4

ksc-sdk-java's People

Contributors

githubofliuheng avatar mzjhe avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.