Google Photos .NET API
Getting started
Get an instance
// accessToken is the OAuth Bearer token provided by google Oauth
using var googlePhotos = new GooglePhotos(accessToken)
Create a new album
string albumId = await googlePhotos.CreateNewAlbum(albumName);
Upload picture
string mediaId = await googlePhotos.UploadMedia(png, albumId);
Get picture
dynamic mediaObject = await googlePhotos.GetMediaItem(mediaItem);
return mediaObject.baseUrl;