标签: google-admin-sdk gsuite google-directory-api
我在此页面上观看了一个示例: https://developers.google.com/admin-sdk/directory/v1/quickstart/php
它有这行:
printf("Open the following link in your browser:\n%s\n", $authUrl);
如何做到这一点,而不必在浏览器中打开页面即可获得令牌?输入登录名和密码后,如何使令牌自动失效并被替换?