globalxtreme/open-api
最新稳定版本:1.0.2
Composer 安装命令:
composer require globalxtreme/open-api
包简介
GlobalXtreme Open API Package for Laravel
README 文档
README
Install with composer
To install with Composer, simply require the latest version of this package.
composer require globalxtreme/open-api
Using
- For example, we'll generate new credential for Customer Support to CRM
- [CRM & Customer Support] Publish the configuration to config/open-api.php file.
php artisan vendor:publish --provider="GlobalXtreme\OpenAPI\OpenAPIServiceProvider" - [CRM] Generate new credential "php artisan open-api-credential name?"
php artisan open-api-credential customer-support
- [CRM] Copy credential to "config/open-api.php"
'credentials' => [ // Copy with the same name? "customer-support" 'customer-support' => [ 'id' => env('OPEN_API_CUSTOMER_SUPPORT_ID', ''), 'key' => env('OPEN_API_CUSTOMER_SUPPORT_KEY', '') ], ]
- [CRM] Add credential to ".env"
OPEN_API_CUSTOMER_SUPPORT_ID=<client-id> OPEN_API_CUSTOMER_SUPPORT_KEY=<client-key>
- [Customer Support] Copy credential to service project / client configuration "config/open-api.php"
'clients' => [ 'CRM' => [ 'host' => env('CRM_HOST', ''), // Server host 'client-id' => env('CRM_CLIENT_ID', ''), 'client-name' => env('CRM_CLIENT_NAME', ''), 'client-secret' => env('CRM_CLIENT_SECRET', ''), ], ]
- [Customer Support] Add credential to ".env" server project / client
CRM_HOST=http://127.0.0.1/ CRM_CLIENT_ID=<client-id> CRM_CLIENT_NAME=<client-name> CRM_CLIENT_SECRET=<client-public-key>
统计信息
- 总下载量: 23
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-23