Google Docs Add-On Print Form Trigger - google-docs

I would like to know if it is possible create and add-on to Google Docs that will allow me to track whether a document has been printed in Google Docs, so that I can do some post processing, in my app.

Related

Instagram - Get post comments

I did create a client in Instagram API but I'm in sandbox mode. My wife have a makeup store account and she is doing a giveaway and the rules is comment a post and mention another 3 friends. So, how can I get all the comments of the photo using or not Instagram API?
We have a web application in: www.beautyglamsd.com and I though that I can put the people that already are in the comments.
You can use service like this one to host your giveaway (works for Instagram, Youtube, Tiktok and VK). You can automate all tasks and save your time (check for like, follow, sponsors).

Google Photo API - search library

The media:search endpoint is okay, but I really need a keyword search. Just like the actual website has. i.e. football
I've tried using the Google Custom Search API and pointing it to photos.google.com, but that is unable to get past the login screen even though I'm authenticated.
Anyone else have any workarounds for a keyword search?
Keyword search is currently not supported in the Google Photos Library API.
There's a feature request on the issue tracker that you can star to draw attention to it and be notified of updates: https://issuetracker.google.com/110300471
At the moment you can search the library by what's in the photo ("content categories"), dates, media types and archived state. More information about what's currently supported is in the developer documentation: https://developers.google.com/photos/library/guides/apply-filters

How to request Google to add a new keyword to Google search autocorrect?

Whenever I want to search for my Android APPS which are developed under publisher nixaree on the Google search engine or Play Store. Instead of displaying that APPS developed by nixaree, it displays other keyword contents and displays did you mean: XYZ.Is there any thing provided so that I can request Google to include this word as a keyword in PlayStore & Web Search Engine.
screenshot example:
No, you cannot change anything about this because you are not the owner of the Google PlayStore; therefore, you cannot add new keywords to it. Hope this helps!

Enable user to send text to specific Gmail contacts

In our website, we need to achieve a seemingly simple task: Enable the user to send a specific text to all or some of his/her Gmail contacts (including contact selection).
We don't actually need the contact data itself. We prefer some kind of "Gmail Plugin" (if there is one) that asks the user to login and does all the work. Alas, we couldn't find any.
We did find several different Google APIs related to this task. Some of them seem to give us contacts data. Others seem to handle sending email:
There is "Contacts API" under
https://developers.google.com/google-apps/contacts/v3/...
There is "Contacts Service" under
https://developers.google.com/apps-script/reference/contacts/...
There is "Gmail Service" under
https://developers.google.com/apps-script/reference/gmail/...
There is "Gmail Platform Integration" under
https://developers.google.com/gmail/...
Each of the above looks different and there seems to be much overlapping between them.
So what is the recommended method to achieve our original task? Is there a plugin that does it all? If not - should we use separate APIs for getting the contacts data and sending the emails, or are there Google APIs that combine both sub-tasks? In case those are separate tasks - is it possible to email via Gmail, or are there other recommended services for the email sending part?
To directly answer your question: you must use the first API you pointed, Contacts API under https://developers.google.com/google-apps/contacts/v3/.
Basically, you want to use the Google Contacts API with OAuth2 authentication in your website: user will be prompted by Google to allow your website to read user contacts.
First, read a bit about OAuth2 authentication flows here: http://alexbilbie.com/2013/02/a-guide-to-oauth-2-grants/
Second step: register your app on Google Console and get your key/pass for the Contacts API (you'll need contacts.readonly permission): https://console.developers.google.com
Then, as you'll use the OAuth2 for Web Servers, check this Google documentation: https://developers.google.com/accounts/docs/OAuth2WebServer
Alternatively, you can use third part libraries to easily import contacts to your website. There are free libraries, like PHP OpenInviter.org, Ruby OmniAuth gem, and paid alternatives, like CloudSponge.com (multi-language).
Disclaimer: I work for CloudSponge.com.
You could achieve this as you say with Google APIs and a Chrome Extension for example.
The user can add a Chrome Extension from the Chrome Webstore. The Extension will provide the user with a user interface to allow them to compose their message and send to the selected contacts.
The users contacts can be retrieved with the Google Contacts API.
The message can be sent to the selected contacts with the Gmail API.
There is a lot of documentation and examples for all of the above which together will give you what you want.
Depending on how much use this is going to get, you could use a contextual gadget which is browser agnostic - but visible in all emails in Gmail.
This is wrong the idea is to post the text to buffer a and submit pointer to array on buffet a and copy it to class b pointer a 0 than release the array and buffer so new allocation can be done

Specifying which Google account to use when executing a Google Apps Script webapp request

I have a browser extension which is scraping the threadId from the URL when the user is reading an email in Gmail, and is using this threadId to fetch circumstantial data using the Google Apps Script API.
The extension do however not know which of maybe several Google accounts are reading this message; it knows only the URL to my Apps Script webapp and the threadId. So when it executes the fetch, the webapp will the interpret request as coming from the default user session, which in some cases is wrong and will thus result in an null when executing GmailApp.getThreadById(e.parameter.threadId).
So what I am wondering is whether it is possible to specify what Google account to use when querying the webapp. Are there any possibilities other than asking the user to log off all other accounts and set the current one as default?
Unfortunately Google Apps Script does not have good support for multiple logins. See this page for more information.
You can add an authuser parameters to the requests you make to your the Google Apps script.
The authuser param's values are zero based indexes for all the Google accounts that are logged in the current browser session.
Now for extracting what index value you need to send, you can scrape the current page for profiles.google.com links that have authuser param and extract your value from them and send it with your requests.
The link might look like this:
https://profiles.google.com/ ... authuser=0
Specifically for gmail, the url also contains the current authuser index, For example:
https://mail.google.com/mail/u/1/#inbox
This URL above contains the authuser value 1 at the end (before the fragment and after /u/)
I know this is very complex and is looks more like a hack. But I think this surely is a workaround, until Google provides a better way to specifying the context for your apps script requests.
I hope this might be helpful.
Thanks.

Resources