-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.php
26 lines (22 loc) · 824 Bytes
/
Config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/*
PHP implementation of Google Cloud Print
*/
$redirectConfig = array(
'client_id' => 'YOUR GOOGLE APP CLIENT ID',
'redirect_uri' => 'URL OF THE SITE',
'response_type' => 'code',
'scope' => 'https://www.googleapis.com/auth/cloudprint',
);
$authConfig = array(
'code' => '',
'client_id' => 'YOUR GOOGLE APP CLIENT ID',
'client_secret' => 'YOUR CLIENT SECRET',
'redirect_uri' => '..baseURL/oAuthRedirect.php', //Redirect the app to oauth file after the user signs in
"grant_type" => "authorization_code"
);
$urlconfig = array(
'authorization_url' => 'https://accounts.google.com/o/oauth2/auth',
'accesstoken_url' => 'https://accounts.google.com/o/oauth2/token',
);
?>