I'm currently working on a website which allows reports to be generated and saved as a Google Slide via the Google Slides API. The reports are generated using a template slide which contains placeholder shapes which are then populated with graphs and text.
My problem is that the template Google Slides file needs to be accessible to any user who decides to generate a report. But...
Google Drive can only be authorized via oAuth. Users coming to the site will not be able to authenticate any drive which does not belong to them
The template cannot be stored in the codebase as the slides API is only able to interact with files stored in the cloud AND it is not possible to download a file in 'Google Slides format'
It could be possible to store the template on Google Cloud Storage, but it is not possible to import a Slides file without converting it to another format. Attempting to convert the file once it has been uploaded does not produce a new slides file within the cloud storage
Is there anywhere I could store my Google Slides template and have it accessible to my application at all times so that it may generate reports based on that template?
Related
I'm having a SharePoint document library which contains some icons. And i'm having a azure web app bot used for messaging extension using bot framework. In messaging extension preview thumbnail card i need to load the icons from SharePoint library.
Both SharePoint document library and Azure bot are on different tenant and users are also different.
SO when i'm trying to load icons from SharePoint library its giving me unauthorized error due to different tenant and users.
Is there any way to pass base64 string to thumbnail card in to load the image instead of url.
I have tried to convert image from SharePoint document library to base64 string but didn't got a way to pass that base64 string to messaging extension.
I need to show images from sharepoint document library into thumbnail card of bot framework.
There are 2 approaches you can implement.
Store images to Azure blob storage and use static url from the blob. You can use SAS key for security.
Other approach is storing images to SharePoint doc library as you listed in question then you are getting base64 value of image and store that value to a variable and use it in DataUri as below
string.Format("data:image/png;base64,{0}",Convert.ToBase64String(photoBytes));
Can we store the photos we pull to our site using Google Places - we essentially pull the info about a hotel, for example, including the picture made available through the Google Places API, and then allow users on our site to view the info, including the pictures - can these pictures that were pulled remain on our server?
Thanks
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?
I want to do the following things in my iOS app:
Let a user create a new Google Spreadsheet, or choose from a list of
existing Google Spreadsheets
Let my app read data from a Google Spreadsheet
Let my user edit a Google Spreadsheet, either by embedding the
spreadsheet, or by switching over to Safari or a Google app.
There are a lot of Google APIs out there…which should I look at to accomplish the above three tasks?
Thanks!
You need the Drive API to create sheets: https://developers.google.com/drive/
You need the Sheets API to work with them (editing the file): https://developers.google.com/google-apps/spreadsheets/?hl=en
You can find information on how to authenticate your Google requests (OAuth2) in the linked pages. The Drive API is built into the Google play services library but you'll need to get the Sheets API separately.
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.