-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.js
80 lines (54 loc) · 2.54 KB
/
config.js
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// This file contains the configuration options for this sample app.
var fs = require('fs');
var obj = JSON.parse( fs.readFileSync('client_id.json'));
const config = {};
// this is temporary and relates to feature enhancement
config.searchdirectory = "/run/media/john/Data/Data/Desktop/Combined Photos etc/GoogleAccounts"
config.fasttest = false;
// absolute path to where unprocessed mp4s reside
config.defaultlocaldir = '/Data/Desktop/Combined Photos etc/mp4locals';
// subdirectory name to place mp4s that exist on server
config.defaultonserverdir= 'mp4sonserver';
// directory where account files will reside
config.defaultpulldir='/Data/Desktop/Combined Photos etc';
config.refreshHandle=-1;
config.atoken =null;
// The OAuth client ID from the Google Developers console.
config.oAuthClientID = obj.installed.client_id;
// The OAuth client secret from the Google Developers console.
config.oAuthclientSecret = obj.installed.client_secret;
// The callback to use for OAuth requests. This is the URL where the app is
// running. For testing and running it locally, use 127.0.0.1.
config.oAuthCallbackUrl = 'http://127.0.0.1:8080/auth/google/callback';
// The port where the app should listen for requests.
config.port = 8080;
// The scopes to request. The app requires the photoslibrary.readonly and
// plus.me scopes.
config.scopes = [
'https://www.googleapis.com/auth/photoslibrary.readonly',
'profile',
'email'
];
// The number of photos to load for search requests.
config.photosToLoad = 150;
// The page size to use for search requests. 100 is reccommended.
config.searchPageSize = 100;
// The page size to use for the listing albums request. 50 is reccommended.
config.albumPageSize = 50;
// The API end point to use. Do not change.
config.apiEndpoint = 'https://photoslibrary.googleapis.com';
config.refreshAcessApiEndpoint = 'https://oauth2.googleapis.com/token';
module.exports = config;