Using the Google Photos Library API your app can read, write, and share photos and videos in Google Photos.
Questions tagged [google-photos-api]
222 questions
2
votes
1 answer
Duplicate Class found while adding Google Photos API Dependency
Throwing Duplicate Class found error after adding the google photos library api dependency
'com.google.photos.library:google-photos-library-client:1.5.0'
. Tried almost every solution present in SO, but nothing works.
My Gradle (Module) File…

Soumik Bhattacharjee
- 870
- 6
- 19
2
votes
1 answer
Connecting a desktop app to Google Photos without disclosing the app's secret key
I'm writing an open-source stand-alone desktop app in Java that handles photos, and I'm adding a feature to let users upload pictures to their Google Photos account, but I'm faced with an authentication/security question.
I've registered my project…

Vicne
- 363
- 3
- 11
2
votes
0 answers
Channel ManagedChannelImpl{logId=1, target=photoslibrary.googleapis.com:443} was not shutdown properly
Has anyone experienced this error with Google Photos SDK for Java:
SEVERE: *~*~*~ Channel ManagedChannelImpl{logId=1, target=photoslibrary.googleapis.com:443} was not shutdown properly!!! ~*~*~*
Make sure to call shutdown()/shutdownNow() and…

quarks
- 33,478
- 73
- 290
- 513
2
votes
1 answer
Get blob Google Photos API media items
I tried to get blob from Google Photos media items.
However, when I tried to fetch from baseUrl, I got error cause by CORS policy.
const blob = fetch(
file.baseUrl + "=w" + file.mediaMetadata.width + "-h" + file.mediaMetadata,
{
…

drs
- 54
- 3
2
votes
0 answers
Java Google Photos Api - How to cancel 'PhotosLibraryClient.initialize(settings)'?
I am developing an app in Java (Kotlin :X) that uses the Google Photos Api.
I am stuck in a flow where I may want to cancel the current client initialization attempt and try again.
val settings = PhotosLibrarySettings.newBuilder()
…

Augusto Carmo
- 4,386
- 2
- 28
- 61
2
votes
1 answer
Why can't I add a existing MediaItem to an existing Album using the online Api Explorer?
I'm using the albumId that I got from the albums.list method. It is, in my eyes, a valid ID, because I can use the albums.get method to get the album.
I'm using the mediaItemId that I got from the mediaItems.list method. It is, again in my eyes, a…

Sophie Roos
- 21
- 1
2
votes
2 answers
How to detect a photo has been modified through Google Photos API?
Getting the list of MediaItems can be done through Google Photos API as well as getting the MediaItem metadata as well as the media item itself.
What if the picture was modified online (e.g. brightness/contrast), then saved?
The MediaItem does not…

edin-m
- 3,021
- 3
- 17
- 27
2
votes
0 answers
Accessing Google Photos using only a sharing link
I am trying to access a Google Photos album that has been shared via a sharing link. A UX user can access such an album without authenticating, simply by following the sharing link.
However, all APIs in Google Photos API that I can find require…

Lev
- 21
- 1
2
votes
1 answer
Authenticating Google Photos API with Service Account Key?
Like this question, Google Photos API - authentication, I am curious about authentication for Google Photos API. One of the question's answers states that
You need to configure OAUth 2.0 credentials (client ID and secret) and not an API key. More…

Hauns TM
- 1,909
- 2
- 22
- 38
2
votes
0 answers
How to send binary data in Gaxios request object with Oauth2Client in google-auth-library-nodejs
I am attempting to upload photos to an authenticated account with google-auth-library-nodejs, mostly following the example here. I have successfully authenticated the client with OAuth2Client and am making a post request first with the image, then…

Isaac Fehr
- 21
- 1
2
votes
2 answers
how to download an original image or video with the baseUrl of Google Photos API?
I want to use the REST Google Photos API to download original photos or videos from Goolge Photos, and I found there is no way to achieve it with the "baseUrl".
I have checked the following pages, but there is not a definitive…

imkk
- 71
- 5
2
votes
0 answers
Google Photos API for Public Albums
I have a website that the gallery part uses photos that are stored on Google Photos.
I'm trying to migrate a connection to the Picasa API (now completely depreciated) to Google Photos API. However all suggestions point to the visitor to authenticate…

RyanC
- 21
- 2
2
votes
1 answer
Is there way to use High Quality mode via Google Photos API?
I`m software developer and trying to upload some videos using Google Photo API, but I want to set up "High quality mode" of such videos programmatically.
So, the point is that my app must upload videos without user participation every 15 GiB.
Could…

AskerNsk
- 21
- 2
2
votes
0 answers
Google Photo API, retrieving original picture from google pixel Portrait Mode
Google Pixel allows to use a "Portrait Mode" that uses some post-processing to create a bokeh effect and blur the background (see for example https://ai.googleblog.com/2018/11/learning-to-predict-depth-on-pixel-3.html). Once uploaded to google…

Pierpaolo
- 1,721
- 4
- 20
- 34
2
votes
1 answer
How to get total count of images from google photos api
Is there any way to get total count of google images using google photos api using javascript

Ramawatar Sharma
- 98
- 7