Questions tagged [google-photos-api]

Using the Google Photos Library API your app can read, write, and share photos and videos in Google Photos.

222 questions
0
votes
0 answers

PHP : Not able to fetch google photos/album using API

Sharing below code what i have tried: $client = new Google_Client(); $client->setApplicationName("XXX"); $client->setAuthConfig('credentials.json'); $client->setAccessType('offline'); $client->getAccessToken(); $service = new…
Suresh Kamrushi
  • 15,627
  • 13
  • 75
  • 90
0
votes
1 answer

nodejs googlephotos fails to upload with "Authentication session is not defined"

I've got some code based on the samples given at the googlephotos documentation. I basically just took the code provided as-is and modified it to fill in my client id, secrets, etc. generate a URL which I then paste into my brower, and after…
Michael
  • 9,060
  • 14
  • 61
  • 123
0
votes
0 answers

Get videos from my google photos(public) without logging in and display it in my web page using php?

I want to build a small video streaming web page using google photos and php/js, I need your help to get all the videos in my google photos to get in json format with video name, playable link etc... and display that in my web page. What i have…
Joseph Samuel
  • 83
  • 1
  • 10
0
votes
0 answers

Google Photos REST API with Angular/Java/dotNet

I am trying to connect to google photo in angular and been searching since last two days about google photos REST api but couldn't find any useful example. Could somebody help me with this on how to use google photos api in angular. an example…
0
votes
1 answer

StackOverflowError at com.google.auth.oauth2.GoogleCredentials.createScoped(GoogleCredentials.java:222)

The code below throws this error when executed: Caused by: java.lang.StackOverflowError at com.google.auth.oauth2.GoogleCredentials.createScoped(GoogleCredentials.java:222) What could be wrong in this code: public static void…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

Google Photos Oauth2 flow returns error 502

I am attempting to use the Google Photos API via my django based web application. During the Oauth flow I am getting error 502 bad gateway.
Gaz Long
  • 347
  • 3
  • 13
0
votes
1 answer

Is there a way to authenticate OAUTH2.0 of google API through terminal?

I am fetching google photos from my account using Google Photo API. Now there is a need for me to execute that php file via terminal, but the problem is that I can't authenticate with Google API in doing so. Is there a way to do this, and if yes,…
0
votes
1 answer

Get remaining storage on Google photos

It might be really simple but I cannot figure it out. I made a little script that is able to upload some photos/video using rest API. Since they all count towards the storage quota (15gb free) I would like to query the remaining free space. How do…
mfaiz
  • 475
  • 1
  • 7
  • 17
0
votes
2 answers

Is there a way to get the hash for a picture stored in Google Photos without downloading the file?

I am attempting to verify that I have successfully copied a bunch of photos from google photos to onedrive. I can programmatically get the sha1 hash of each file stored in OneDrive but I don't see the same option from the google photos rest api. I…
Tim
  • 412
  • 7
  • 18
0
votes
1 answer

GOOGLE Photos API: Getting io.grpc.StatusRuntimeException: UNAVAILABLE: io exception on listAlbums

Straight-up java code, running jdk 10. On Linux Mint 18. Have connected to GoogleApis for google drive no problems. Did all the google setup for GooglePhotos that I did for GoogleDrives Now trying to do a simple photosClient.listAlbums() and…
Jeff
  • 1
0
votes
1 answer

Is it possible to load google photos metadata into google sheets?

I have a project where I have scanned 10,000 family pictures from as far back as the 1900's and I am organizing them in Google Photos. I have a spreadsheet where I was keeping track of the proper dates and captions for the entire collection. I would…
0
votes
1 answer

Google Functions trigger

I have created website displaying pictures from defined album in Google Photos. For better performance picture URLs are read from local database. Database is updated in the background after user requested initial page. Is there any possibility to…
0
votes
1 answer

Fetch a random photo from Google Photos with API

I want to write an app that fetches a random photo from my Google Photos set of photos using the Google Photos API. This is the new Google Photos, not the old one that was linked to a Google Drive. In my review of the API Docs, it seems that you…
vy32
  • 28,461
  • 37
  • 122
  • 246
0
votes
0 answers

Sharing and Import image in android using Google Photo API android

I want to use Google photo API in my application for sharing image using Google photo API. I have created client id in credential section. From here I am stuck how to use it and how to open Google photo and select image from there for sharing…
0
votes
1 answer

How can I provide public access to my photos

I would like to build a small js library that can read a specific album from my account and display the photos within as a slideshow. In this guide (https://developers.google.com/photos/library/guides/get-started), to access the API we need both…
FailedUnitTest
  • 1,637
  • 3
  • 20
  • 43