Online Storage OperationsΒΆ
To optionally setup online storage, download the Google Cloud service account json and execute:
papi.onlineStorage.connectToOnlineStorage("json/sevice/account/file/","photoStorageBucketName", "videoStorageBucketName")
To change photo storage location:
papi.onlineStorage.setOnlinePhotoStorageLocation("newPhotoBucketLocation")
To change video storage location:
papi.onlineStorage.setOnlineVideoStorageLocation("newVideoStorageLocation")
To store photos online:
papi.onlineStorage.storeOnlinePhotos("/photo/storage/folder")
To store videos online:
papi.onlineStorage.storeOnlineVideos("/video/storage/folder")
To get a photo from online storage:
papi.onlineStorage.getOnlinePhoto("photoname", "/dest/folder/location")
To get multiple photos from online storage:
papi.onlineStorage.getOnlinePhotos("/dest/folder/location", startsWith="starting letters")
To get a video from online storage:
papi.onlineStorage.getOnlineVideo("videoname", "/dest/folder/location")
To get multiple videos from online storage:
papi.onlineStorage.getOnlineVideos("/dest/folder/location", startsWith="starting letters")