Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)