findyourcode / rongcloud
PHP 的 Rong Cloud 服务器 SDK。
v1.0.1
2018-06-08 08:42 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2024-09-21 20:36:34 UTC
README
PHP 的 Rong Cloud 服务器 SDK for Composer。
安装
- 建议使用 composer 安装,在 composer.json 中声明依赖,或者运行以下命令:
$ composer require findyourcode/rongcloud
- 直接下载安装,SDK 没有依赖其他第三方库,可以直接下载引入使用。
- 直接抛出异常,SDK 不再自行打印异常
使用方法
include 'RongCloud.php'; $appKey = 'appKey'; $appSecret = 'appSecret'; $jsonPath = "jsonsource/"; ... $rongCloud = new \RongCloud\RongCloud($appKey,$appSecret); $token = $rongCloud->user()->getToken('userId1', 'username', 'http://www.rongcloud.cn/images/logo.png');; ...
联系我们
- 如果希望提供帮助,请提交工单,或者通过 mailto:support.rongcloud.cn 发送邮件
- 如果发现了bug,欢迎使用 issue 提交
- 如果想要提交代码,欢迎提交 pull request
代码许可
The MIT License (MIT)。