Download the PHP package likry/juguang-sdk without Composer

On this page you can find all versions of the php package likry/juguang-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package juguang-sdk

小红书聚光平台PHP SDK (统一入口版)

小红书聚光平台官方PHP SDK,以Client为统一入口,提供OAuth认证、财务API、账户管理、报表等功能支持。

🎯 核心特性

🚀 统一入口设计

📦 完整功能覆盖

⚡ 性能优化

📦 安装

🎮 快速开始

基础使用

配置化使用

🔐 OAuth认证

生成授权URL

获取Access Token

Token自动刷新

💰 财务API

查询账户余额

余额统计分析

👤 账户API

获取账户信息

预算管理

📊 报表API

获取日报表

账户报表

广告报表

⚙️ 配置管理

快速配置

高级配置

🛠️ API接口一览

统一入口方法

方法 说明 返回
Client::create($appId, $secret) 创建客户端实例 Client
Client::fromConfig($config) 从配置创建客户端 Client
$client->setAccessToken($token) 设置访问令牌 self
$client->getAccessToken() 获取访问令牌 string
$client->getClientInfo() 获取客户端信息 array

OAuth方法

方法 说明 参数
$client->oauth() 获取OAuth实例 OAuthApi
$client->generateAuthUrl($scopes, $redirectUri, $state) 生成授权URL string
$client->authenticate($authCode) 获取Access Token array
$client->refresh($refreshToken) 刷新Access Token array

财务方法

方法 说明 参数
$client->finance() 获取财务API实例 FinanceApi
$client->finance()->queryBalance($userId, $vsellerIds) 查询余额 array
$client->finance()->formatBalanceInfo($data) 格式化余额信息 array
$client->finance()->getBalanceSummary($data) 余额汇总统计 array

账户方法

方法 说明 参数
$client->account() 获取账户API实例 AccountApi
$client->account()->getAccountInfo() 获取账户信息 array
$client->account()->getBudget() 获取预算信息 array
$client->account()->updateBudget($data) 更新预算信息 array

报表方法

方法 说明 参数
$client->report() 获取报表API实例 ReportApi
$client->report()->getDailyReport($params) 获取日报表 array
$client->report()->getAccountReport($params) 获取账户报表 array
$client->report()->getAdReport($params) 获取广告报表 array

🚨 错误处理

统一异常处理

🔧 高级功能

TokenManager集成

批量操作

📝 示例代码

完整业务流程

🧪 测试

📁 项目结构

🎯 设计优势

1. 统一入口

2. 简洁使用

3. 功能完整

4. 开发友好

📄 许可证

MIT License

🤝 贡献

欢迎提交Issue和Pull Request来帮助改进这个SDK!

📞 联系方式


🎉 享受使用小红书聚光平台PHP SDK!通过Client统一入口,让API调用更简单!


All versions of juguang-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-curl Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package likry/juguang-sdk contains the following files

Loading the files please wait ...