Ensure that you are familiar with OBS basic concepts from Help Center, such as bucket, object, region, and AK/SK.
This chapter introduces how to set up an environment for secondary development and to perform common operations, including creating a bucket, uploading an object, and downloading an object.
- You can see General Examples of ObsClient to understand how to call OBS Java SDK APIs in a general manner.
- After an API calling is complete using an instance of ObsClient, view whether an exception is thrown. If no, the return value is valid. If yes, the operation fails and you need to obtain the error information from an instance of ObsException.
- After an API is successfully called by an instance of ObsClient, an instance of ResponseHeader (or of its sub-class) containing the response headers will be returned.