aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/MainView.tsx
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2019-09-03 12:51:59 -0400
committerSam Wilkins <samwilkins333@gmail.com>2019-09-03 12:51:59 -0400
commit38176e5ba949b84dc410d29197180121d81e085c (patch)
treefc16f9dadd97d76c8431640bab27cfa8bb75421f /src/client/views/MainView.tsx
parent8b992ef2c152e86299fd3460112124d476393a60 (diff)
implemented refresh tokens and create, get, list
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r--src/client/views/MainView.tsx10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx
index df0718072..ece475c80 100644
--- a/src/client/views/MainView.tsx
+++ b/src/client/views/MainView.tsx
@@ -42,6 +42,8 @@ import PresModeMenu from './presentationview/PresentationModeMenu';
import { PresBox } from './nodes/PresBox';
import { GoogleApiClientUtils } from '../apis/google_docs/GoogleApiClientUtils';
import { docs_v1 } from 'googleapis';
+import { Album } from '../../server/apis/google/typings/albums';
+import { GooglePhotosClientUtils } from '../apis/google_docs/GooglePhotosClientUtils';
@observer
export class MainView extends React.Component {
@@ -128,7 +130,7 @@ export class MainView extends React.Component {
window.removeEventListener("keydown", KeyManager.Instance.handle);
window.addEventListener("keydown", KeyManager.Instance.handle);
- PostToServer('/googleDocs/Photos/Test', {});
+ this.executeGooglePhotosAlbumTestRoutine();
reaction(() => {
let workspaces = CurrentUserUtils.UserDocument.workspaces;
@@ -147,6 +149,12 @@ export class MainView extends React.Component {
}, { fireImmediately: true });
}
+ executeGooglePhotosAlbumTestRoutine = async () => {
+ let title = "This is a generically created album!";
+ console.log(await GooglePhotosClientUtils.Create(title));
+ console.log(await GooglePhotosClientUtils.List({ pageSize: 50 }));
+ }
+
componentWillUnMount() {
window.removeEventListener("keydown", KeyManager.Instance.handle);
//close presentation