在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):yasirsiddiqui/php-google-cloud-print开源软件地址(OpenSource Url):https://github.com/yasirsiddiqui/php-google-cloud-print开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):Google Cloud PrintPHP class to print documents using Google Cloud Print using OAuth2. First of all you have to add printers to Google Cloud Print using your Gmail account and Google Chrome browser. Follow the instructions on the following link to add printer to Google Cloud Print https://support.google.com/cloudprint/answer/1686197 Google OAuth Prerequisites
Create Google OAuth Credentials
Replace client_id, client_secret values in $redirectConfig and $authConfig arrays in Config.php file. You also need to replace redirect_uri in both $redirectConfig and $authConfig arrays. This URL should point to oAuthRedirect.php on your server. For Online Access hit index.phpOnline access requires authorization every time you need to send print to printer once token in Session gets expired. For Offline Access (when you want to send prints without user presence) hit offlineAccess.phpOffline access requires authorization only once or unless user has revoked access. You should use offline access when you want to send prints to printer with out the presence of user or send prints to printer using a cron job script. Once you hit offlineAccess.php you will be redirected to offlineToken.php which will show you your refresh token. You need to save refresh token to database, file or some cache systems as later on when you will send print to printer in offline mode you need to replace that refrsh token at line # 29 on cron.php |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论