aboutsummaryrefslogtreecommitdiff
path: root/src/server/apis/google/GooglePhotosUtils.ts
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2019-09-01 14:03:32 -0400
committerSam Wilkins <samwilkins333@gmail.com>2019-09-01 14:03:32 -0400
commit5e12b7d816f1778af112ce69f3029e2f4a72bb08 (patch)
tree5700c5eab4bed2f1e69462a460aebe0dd0ad4e7a /src/server/apis/google/GooglePhotosUtils.ts
parent77e08a4362ba8fab4cab361fcb472702c97edf15 (diff)
authentication working
Diffstat (limited to 'src/server/apis/google/GooglePhotosUtils.ts')
-rw-r--r--src/server/apis/google/GooglePhotosUtils.ts22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/server/apis/google/GooglePhotosUtils.ts b/src/server/apis/google/GooglePhotosUtils.ts
index c33ad2dd9..7f9ffb6f3 100644
--- a/src/server/apis/google/GooglePhotosUtils.ts
+++ b/src/server/apis/google/GooglePhotosUtils.ts
@@ -1,12 +1,12 @@
-import request = require('request-promise');
-const key = require("../../credentials/auth.json");
+// import request = require('request-promise');
+// const key = require("../../credentials/auth.json");
-export const PhotosLibraryQuery = async (authToken: any, parameters: any) => {
- let options = {
- headers: { 'Content-Type': 'application/json' },
- json: parameters,
- auth: { 'bearer': authToken },
- };
- const result = await request.post(config.apiEndpoint + '/v1/mediaItems:search', options);
- return result;
-}; \ No newline at end of file
+// export const PhotosLibraryQuery = async (authToken: any, parameters: any) => {
+// let options = {
+// headers: { 'Content-Type': 'application/json' },
+// json: parameters,
+// auth: { 'bearer': authToken },
+// };
+// const result = await request.post(config.apiEndpoint + '/v1/mediaItems:search', options);
+// return result;
+// }; \ No newline at end of file