google-photos

Getting videos(non-local) from the Google Photos App

一个人想着一个人 提交于 2019-12-21 05:26:07
问题 With the Google Photos app , I am trying to pick a video, that is not cached on the device. I am using the ACTION_GET_CONTENT intent, to launch the options dialog, and from there I choose the Google Photos app. While selecting local videos, it returns an Uri in this form. content://media/external/video/media/6708 And from that, I query the content provider to retrieve the actual file location, and proceed from there. The file location looks like this. /storage/emulated/0/WhatsApp/Media

Get list of all files in Google Photos

假装没事ソ 提交于 2019-12-21 04:59:42
问题 My ultimate goal is to get a list with all the files (photos, videos) in my Google Photos account preferably with their path. If I have to use some API I would rather use a .NET based one. Can you provide some directions in this matter? I've tried the Gdata API, via the PicasaService, but providing my email/password as credentials did not work and I always get 404 response. 回答1: How to list all files in your Google Photos : I was surprised at how long it took me to find this API. It's not

Get list of all files in Google Photos

两盒软妹~` 提交于 2019-12-21 04:59:06
问题 My ultimate goal is to get a list with all the files (photos, videos) in my Google Photos account preferably with their path. If I have to use some API I would rather use a .NET based one. Can you provide some directions in this matter? I've tried the Gdata API, via the PicasaService, but providing my email/password as credentials did not work and I always get 404 response. 回答1: How to list all files in your Google Photos : I was surprised at how long it took me to find this API. It's not

Is there a Google Photos API [closed]

霸气de小男生 提交于 2019-12-20 08:19:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I know that there is an older post here with the same question. But it was asked in 2012 and the answers are also a couple of years old. Also that is about Google+ Photos , and I am asking about Google Photos Recently Google Photos has been made a shiny new service with new announcements about having unlimited

Is there a way to use Google Photos API without requiring authentication through user prompt?

二次信任 提交于 2019-12-20 04:58:06
问题 I have some previous experience with the youtube and youtube analytics api where there was an option to use https://developers.google.com/oauthplayground/ to essentially create an offline situation for your own user account api access. By creating the key in the developer console you could add that to a custom oAuth credentials. The user account you were logged into would then generate the access token and refresh token needed. I do not see Google Photos API listed as an option here. I would

Choosing photo using new Google Photos app is broken

不羁的心 提交于 2019-12-17 05:40:48
问题 My app has ability to select photo from library. Exactly I want file path from this selection. This is the code to create intent for selecting photo: Intent photoPickerIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); photoPickerIntent.setType("image/*"); startActivityForResult(photoPickerIntent, INTENT_REQUEST_CODE_SELECT_PHOTO); This is the code that gets file path from URI: Cursor cursor = null; String path = null; try { String[] projection = {

Choosing photo using new Google Photos app is broken

左心房为你撑大大i 提交于 2019-12-17 05:40:21
问题 My app has ability to select photo from library. Exactly I want file path from this selection. This is the code to create intent for selecting photo: Intent photoPickerIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); photoPickerIntent.setType("image/*"); startActivityForResult(photoPickerIntent, INTENT_REQUEST_CODE_SELECT_PHOTO); This is the code that gets file path from URI: Cursor cursor = null; String path = null; try { String[] projection = {

How to Access Google Photos API with Javascript using google-api-javascript-client and read JSON data?

坚强是说给别人听的谎言 提交于 2019-12-14 03:43:17
问题 I am very new to using API and getting JSON data using OAuth. Could anybody help me? I am trying to access clients google photos and read them. These code snippets are from google photos documentation. I modified it but still having error: "Failed to load resource: the server responded with a status of 401 ()" and "Uncaught {error: "idpiframe_initialization_failed", details: "Not a valid origin for the client: http://127.0.0 .…itelist this origin for your project's client ID."}" Thank you!!!

Google Photos Library API IDs are invalid

限于喜欢 提交于 2019-12-14 02:54:34
问题 Cached IDs of media items, albums and enrichment items stopped working. For example, calling mediaItems.get with a media item ID that was stored returns the following error: { "error": { "code": 400, "message": "Invalid media item ID.", "status": "INVALID_ARGUMENT" } } 回答1: The format of all IDs returned by the Google Photos Library API changed on September 5. If you have stored IDs such as albums ids, media item ids, or enrichment item ids before 5th September 2018, these will no longer work

Is there a way to get around size limit for “Upload to Photos”

五迷三道 提交于 2019-12-13 08:48:37
问题 I'm using this code to share a collection of images: final ArrayList<Uri> imageUris = new ArrayList<>(); for (final ImageBean selectedImage : ImageBean.getSelectedImageBeans(imagesBeans)) { final File imageFile = new File(selectedImage.getPathToImage().getPath()); final Uri contentProviderUri = FileProvider.getUriForFile(context, BuildConfig.APPLICATION_ID + ".provider", imageFile); imageUris.add(contentProviderUri); } final Intent shareIntent = new Intent(); shareIntent.setType("image/*");