Google Photos Migration API Developed in NodeJS. It uses Express framework for API design.
It uses route.js as main routing file. Routes/controller/migrate-controller.js is main controller being called from route POST: {baseURL}migrateAlbum.
/**
* Uploads Media Item from one Account to another
* @param {string} authToken
* @param {array} mediaItems
* @param {string} albumData
*/
MigrateAlbum(authToken, mediaItems, albumData);
- Creates a new Album in destination Google Photos Account It uses Create Album API by Google Photos
- Uploads media items and gets Upload Token It uses Google Photos' Upload API which returns Upload Tokens
- Using Upload Tokens generate in Step 2, upload it to Google Photos account It uses mediaItems:batchCreate API to upload media
How to Use https://github.com/malipramod/google-photos-migration-node_module/blob/master/demo/migrate-demo.js