Google Photos API - loading photos directly from Google Drive - google-api

is it possible to post an image upload request to Google Photos REST API, and point it to an image on Google Drive, or use any image URL for that matter (instead of actually opening image on your local drive and posting data)?
Thanks for your replies.

Related

How to import google drive videos into same youtube account?

I have already uploaded videos available in google drive. How to import these videos into same youtube account to watch those videos in android MI tv ?
Thanks
Google drive and YouTube are to separate web applications.
You will need to download the files from google drive and the upload them to YouTube its not possible to upload directly from drive.
How you do this will depend entirely on which programming language you are using.
But basically use Oauth2 to login a user to google drive and YouTube. Programmatic download the file to where ever you are running your application from then upload it to Youtube.
you could select video in google drive and select upload to you tube Chanel like below:
and use this website:
https://imclient.herokuapp.com

Generate Google Photo link from Google Picasa Web API data call

I am currently trying to generate a url to link to a public Google Photos gallery. I am aware from some research that all calls regarding Google Photos go through the Picasa API. So, by running file_get_contents on the following URL, I have retrieved a full listing of all public albums on my user account
http://picasaweb.google.com/data/feed/api/user/<USERNAME>?alt=json&kind=album&hl=en_US
This works perfectly and includes links to the gallery in Picasa. However, I would much prefer to be able to generate a link to the corresponding Google Photos gallery. On sharing Google photos, a shortened url is generated, like
https://goo.gl/photos/code
I was wondering if there was any possible way, given the album ID from the API call that such a link could be generated
Previous questions on this subject haven't generated much response unfortunately - is anyone aware of any such Google link generation capability?

Save uploaded files to Google Drive from website built on Ruby Volt

I'm building a web site using Ruby Volt for a publication. I'd like users to be able to upload images that will be stored on Google Drive. The Google Drive will belong to the publication, not to the site users who are uploading the images. If possible, I'd like the fact the images are being stored on Google Drive to be transparent to the site users.
The publication staff will access the images via their Google Drive.
My head is swimming with the Google documentation… Does anybody know if this is doable? If it is can you offer any pointers to example code or suggestions on how to get started?
So I can't help with the google drive API side of things, but in Volt, you can use a HttpController to post a input type="field". In the http controller, you can call params._field_name to get the data from rest. That will provide a tempfile you can copy out. Once I get time I'll make a demo app for file upload.

Upload in Google API and Dropbox SDK

I already have an upload function in Google API and Dropbox API, but the problem is it can only upload small files like images but it cant upload big files like videos. Please help what do I need to add in the code.
This is my code in Google
This is my code in Dropbox
Please help..

Post a photo on Facebook wall

Please recommend an image sharing service that can be called programmatically to upload a photo. I want to use the returned response and post a link to that photo or album in a Facebook message on wall.
The problem is that Facebook doesn't allow to use an uploaded photo within Facebook to be used in the wall message whereas external domains are allowed.
Can flickr be used? I don't want the users to login to flickr though.
Have you tried Imgur? http://api.imgur.com/

Resources