redmix0901/google-token

Get Token Google

1.0 2021-07-24 16:07 UTC

This package is auto-updated.

Last update: 2024-05-23 17:18:36 UTC


README

$name = Tương ứng trong file config, ví dụ bạn muốn tạo 1 google client bằng tài khoản A, thì đặt tên google_a = thông tin của tài khoản A (bao gồm credentials, scopes, và đường dẫn lưu token)

use Redmix0901\GoogleToken\Facades\Goten;

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

Trước khi sử dụng hãy lưu ý chạy lệnh sau để lấy token

php artisan goten:get-token google_a