redmix0901/google-token

获取Google令牌

1.0 2021-07-24 16:07 UTC

This package is auto-updated.

Last update: 2024-09-23 18:02:46 UTC


README

$name = 在配置文件中对应,例如您想使用账户A创建一个Google客户端,那么设置google_a = 账户A的信息(包括凭证、作用域和令牌存储路径)

use Redmix0901\GoogleToken\Facades\Goten;

$google_client = Goten::use($name)->getClient();

在开始使用之前,请注意运行以下命令以获取令牌

php artisan goten:get-token google_a