xujif/ucloud-ufile-sdk

ucloud ufilesdk base on rest

1.0.6 2015-11-16 03:07 UTC

This package is auto-updated.

Last update: 2024-11-27 19:26:27 UTC


README

#ucloud ufile sdk

base on https://docs.ucloud.cn/api-docs/ufile-api/

#usage

    $sdk = new UfileSdk('storage','api_pub_key','api_pub_secret');
    $sdk->put('text.txt',"content");
    $sdk->putFile('text.txt',"/path/to/yourfile");
    $contents = $sdk->get('dd');
    $exists =  $sdk->exists('dd222');
    $size = $sdk->delete('dd');
``
或者直接查看tests/sdkTest.php