redmix0901/google-token

Get Token Google

Installs: 21

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/redmix0901/google-token

1.0 2021-07-24 16:07 UTC

This package is auto-updated.

Last update: 2025-12-23 20:40:48 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