Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caikeal/coding-open-api
Coding Open Api
https://github.com/caikeal/coding-open-api
api coding-open-api resetful-api
Last synced: 13 days ago
JSON representation
Coding Open Api
- Host: GitHub
- URL: https://github.com/caikeal/coding-open-api
- Owner: caikeal
- Created: 2018-11-14T03:41:18.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-11T17:25:12.000Z (about 5 years ago)
- Last Synced: 2023-09-02T08:18:18.160Z (about 1 year ago)
- Topics: api, coding-open-api, resetful-api
- Language: PHP
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Install
`composer install caikeal/coding-open-api`# Settings
获取配置项:
`php artisan vendor:publish --provider="CodingOpenApi\LaravelCoding\ServiceProvider"`# Usage
```php
...
use CodingOpenApi\LaravelCoding\Facade;...
public function test () {
return Facade::enterprise('ksbaozi')->access_token->getToken();
}
```当用 `refresh_token` 刷新 `access_token` 时, 会同时更新原来的 `refresh_token`, 并会发出事件`CodingOpenApi\Enterprise\Events\RefreshTokenChanged`。
**注意:首次生成 `refresh_token` 是不会触发该事件的**
# Thanks
[overtrue](https://github.com/overtrue)