The Huawei Cloud CS Sdk enables Scala and Java developers to easily work with Huawei Cloud CS. You can get started in minutes using Maven or sbt.
Quick links:
- SDK Homepage
- issue
- CS Homepage, or Chinese language site 实时流计算服务
- huaweicloud-cs-java-sdk is for Java
GPG_TTY=$(tty);export GPG_TTY;mvn clean deploy -Dgpg.passphrase=xxxx
add the distributionManagement
to the pom. # todo add deploy script
<distributionManagement>
<snapshotRepository>
<id>oss-snapshot</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>oss-release</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
...
//create API client
ApiClient apiClient = new ApiClient("regionName");
//use token authentication method
apiClient.useToken("domainName", "userName", "password", "projectId");
//Ak sk authentication method is not supported yet
//apiClient.useAksk(ak, sk);
JobApi jobApi = new JobApi(apiClient);
...