1 Star 1 Fork 0

wenzhihzhon / cbrother-for-aliyun-oss-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

cbrother-for-aliyun-oss-sdk

介绍

cbrother-for-aliyun-oss-sdk 是基于aliyun-oss-php-sdk,使用CBrother语言重构的。 最近比较忙,只是对php代码进行简单重构,需要的童鞋可以自行修改代码

安装教程

  1. 在cbrother安装根目录lib文件夹下,克隆我使用CBrother封装的php函数项目,方便全局调用这些函数,参考:https://gitee.com/wenzhihzhon/cbrother-for-php-function 比如,D:\cbrother_v2.4.5_win_amd64\lib\cbrotherForPhpFunction\php.cb
  2. 克隆当前项目cbrother-for-aliyun-oss-sdk下来: git clone https://gitee.com/wenzhihzhon/cbrother-for-aliyun-oss-sdk.git 如果要把sdk引入自己项目,要修改项目名称,不能包含横杠,因为import到自己的业务代码会报错。

使用说明

  1. 添加oss 配置信息 vim test/Config.cb
  2. 修改测试用例 vim test/upload.cb 修改以下测试路径 var $object = "wzz2019/example3.jpg"; var $file = "D:\Downloads\example.jpg";
  3. 测试命令 D:\cbrother_v2.4.5_win_amd64\cbrother.exe test/upload.cb 输出
    Map {
        "response_data" : "",
        "response_code" : 200,
        "request_url" : "http://wzz2019.oss-cn-beijing.aliyuncs.com/wzz2019/example3.jpg"
    }

致谢

CBrother官网 阿里云OSS官方文档

MIT License Copyright (c) 2022 wenzhihzhon Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
其他
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
其他
1
https://gitee.com/wenzhihzhon/cbrother-for-aliyun-oss-sdk.git
git@gitee.com:wenzhihzhon/cbrother-for-aliyun-oss-sdk.git
wenzhihzhon
cbrother-for-aliyun-oss-sdk
cbrother-for-aliyun-oss-sdk
master

搜索帮助