最近更新时间:2023-04-28 14:43:29
git clone https://github.com/KscSDK/ksc-sdk-java.git
mvn clean install
设置pom文件即可
建议使用Maven构建自己的项目,导入ksc-sdk-java,添加ksc-sdk-java-kls的依赖
<dependencies>
<dependency>
<groupId>com.ksyun</groupId>
<artifactId>ksc-sdk-java-kls</artifactId>
<version>0.3.6</version>
</dependency>
</dependencies>
~/.aws/credentials Linux,MacOS和Unix系统
C:\Users\{USERNAME}\.aws\credentials Windows系统
[default]
aws_access_key_id = your_acces s_key_id
aws_secret_access_key = your_secret_access_key
AWSCredentials credentials = new BasicAWSCredentials(aws_access_key_id, aws_secret_access_key);
KSCKSLClient kls_client = new KSCKSLClient();
//可传入AWSCredentials参数 如:KSCKSLClient kls_client = new KSCKSLClient(credentials);
kls_client.setEndpoint("http://kls.api.ksyun.com");
字符集:utf-8
注: 为了更方便您调用SDK,我们准备了实际的SDK调用示例,您只需要替换其中的AKSK和请求参数即可,详见SDK调用示例
纯净模式