This document is written based on OSS C SDK 3.5.0.


  • For SDK series of 3.*.*: compatible
  • For SDK series of 2.*.*:

    • Windows: compatible
    • Linux API: compatible except for the linked list (aos_list_t) traversal interface.
      • os_list_for_each_entry
      • aos_list_for_each_entry_reverse
      • aos_list_for_each_entry_safe
      • aos_list_for_each_entry_safe_reverse
  • For SDK series of 1.0.0: incompatible for only the following APIs

    • oss_request_options_t
    • oss_get_object_to_buffer
    • oss_get_object_to_file
    • oss_get_object_to_buffer_by_url
    • oss_get_object_to_file_by_url
    • oss_init_multipart_upload
    • oss_complete_multipart_upload
  • For SDK series of 0.0.*: incompatible

SDK source code

For the Java SDK source code, see GitHub.

Code samples

OSS SDK for C provides a variety of code samples for your reference or use. The following table describes the content of code samples:

Sample file Content
oss_put_object_sample Upload objects
oss_get_object_sample.c Download objects
oss_append_object_sample.c Append upload
oss_multipart_upload_sample.c Multipart upload
oss_resumable_sample.c Resumable upload, Resumable download
oss_head_object_sample.c Manage the metadata of an object
oss_list_object_sample.c List objects
oss_delete_object_sample.c Delete an object
oss_callback_sample.c Upload callback
oss_progress_sample.c Progress bar, Progress bar
oss_crc_sample.c CRC check during upload or download
oss_image_sample.c Image processing