OSS SDKs automatically sign RESTful API requests so you don't have to implement signature logic yourself. Without an SDK, you must manually calculate and attach request signatures in your code.
Use the AccessKey pair of a RAM user to initiate a request to OSS
To use a RAM user's AccessKey pair to call OSS:
Initialize an OSSClient instance with the RAM user's AccessKey pair.
Call the OSSClient method for the operation you want to perform.
OSSClient signs the request with the AccessKey pair and sends it to OSS.
For more information, see Use the AccessKey pair of a RAM user to access OSS resources.
Use temporary access credentials from STS to initiate a request to OSS
RAM users can get short-lived temporary access credentials from Security Token Service (STS) and use them to access OSS resources. The credentials expire automatically after the specified validity period.
To use STS temporary access credentials to call OSS:
Initialize an STSClient instance with the RAM user's AccessKey pair.
Call the AssumeRole method to get temporary access credentials for a RAM role with a specified policy attached.
Initialize an OSSClient instance with the temporary access credentials.
Call the OSSClient method for the operation you want to perform.
OSSClient signs the request with the STS credentials and sends it to OSS.
For more information, see Access OSS by using STS temporary credentials.
OSS SDKs
OSS provides SDKs for the following programming languages: