Skip to content

byteplus-sdk/byteplus-sdk-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BytePlus SDK for Java

- Maven repo

maven

<dependency>
    <groupId>com.byteplus</groupId>
    <artifactId>byteplus-sdk-java</artifactId>
    <version>latest</version>
</dependency>

AK/SK Setting

  • Explicitly call setAccessKey/setSecretKey method in service class

  • Set env variable BYTEPLUS_ACCESSKEY="your ak" BYTEPLUS_SECRETKEY = "your sk"

  • json config at ~/.byteplus/config,format:{"ak":"your ak","sk":"your sk"}

Above options will take precedence in sequence, Suggest use option 1 for better trouble shooting

Region Setting

  • Currently, below regions are supported:
    - ap-singapore-1
    

More examples:

src/main/java/com/example