64robots/products-api-accessor
Composer 安装命令:
composer require 64robots/products-api-accessor
包简介
This package is a command that will generate the access-token for a product-api project.
README 文档
README
This package is a command that will generate the access-token for a product-api project.
Installation and setup
To get the latest version, simply require the package using Composer:
$ composer require 64robots/products-api-accessor
Once installed, this package will automatically register its service provider.
Publish the config file to config/products.php run:
$ php artisan vendor:publish --provider="R64\ProductsApiAccessor\AccessorServiceProvider" --tag="config"
Usage
- Use passport's command
php artisan passport:clientto generate new Client ID and Client Secret from Products api. Copy the Client ID and Client Secret and set it in your .env like so;
PRODUCTS_API_BASE_URI=http://url-to-products-api
PRODUCTS_API_CLIENT_ID=x
PRODUCTS_API_CLIENT_SECRET=xxxx
- Ran the command
php artisan generate:products-api-access-tokento generate access token. The token will be automatically set in the .env.
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2020-01-28