main.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #include "aos_log.h"
  2. #include "aos_util.h"
  3. #include "aos_string.h"
  4. #include "aos_status.h"
  5. #include "oss_auth.h"
  6. #include "oss_util.h"
  7. #include "oss_api.h"
  8. #include "oss_config.h"
  9. #include "oss_sample_util.h"
  10. extern void append_object_sample();
  11. extern void delete_object_sample();
  12. extern void put_object_sample();
  13. extern void get_object_sample();
  14. extern void head_object_sample();
  15. extern void list_object_sample();
  16. extern void multipart_object_sample();
  17. extern void callback_sample();
  18. extern void progress_sample();
  19. extern void crc_sample();
  20. extern void image_sample();
  21. extern void resumable_upload_sample();
  22. int main(int argc, char *argv[])
  23. {
  24. if (aos_http_io_initialize(NULL, 0) != AOSE_OK) {
  25. exit(1);
  26. }
  27. /* put_object_sample();
  28. append_object_sample();
  29. get_object_sample();
  30. head_object_sample();*/
  31. list_object_sample();
  32. /* multipart_object_sample();
  33. delete_object_sample();
  34. callback_sample();
  35. progress_sample();
  36. crc_sample();
  37. image_sample();
  38. resumable_upload_sample();
  39. */
  40. aos_http_io_deinitialize();
  41. system("pause");
  42. return 0;
  43. }