Ways to integrate app in GMail - gmail

Is there any way to integrate an app into GMail (with like a custom button next to the send button which will perform a request to a specific url) without an Firefox / Chrome addon? So an application really integrated in GMail?
I was wondering as I would like to do the following;
Allow a user to click to move a message to a specific (hardcoded) folder
Put the message back at the top of their inbox after a API query (from my app). So the Inbox priority filtering should be managable.

You'll want to take a look at Gmail Gadgets.
Gadgets are custom HTML and JavaScript components that run within an
iframe and can be embedded within various web pages. Gmail includes
support for embedding gadgets within the web interface, creating
content-rich data displays and extending Gmail with additional
functionality.

Related

How should I add multiple buttons using custom payload in the Default Response Tab (Not any other platform)?

My experience with dialog flow is minimal. I want to add clickable button responses that an end-user can select from. I do not want to use any other platform except for Default. I will be implementing this on my website. I have not enabled webhook and fulfillment yet. I just want to write the code to add buttons, test it, and then publish my agent on the website.
I have bad news for you. From the default features the only option you have for implementing it on your website is using Web Demo which does not support rich responses(button, image, etc..). That means if you want to implement a bot with rich response on your website, you will have to enable Fulfillment and use webhook.

Is it possible to create a search extension?

I want to create a search addon for Gmail (G Suite Marketplace).
I need to search mails by custom headers. Is it possible to add new features to search engine?
No, from https://developers.google.com/gsuite/add-ons/gmail:
G Suite add-ons can define the following kinds of extensions within
Gmail:
Homepages and other non-contextual cards.
Contextual interfaces that appear when users open Gmail messages.
Contextual interfaces that appear when a user composes a message or reply.
Automatically create new message drafts in response to user interactions.
You may want to check instead the Gmail APIs to build a custom web app with search capabilities instead of a Gmail addon.

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

sending a text message or email automatically from a chrome extension

Is it possible to send a text message or email automatically from a chrome extension triggered by an event on a web page? This is for notification within a company, it's not meant to be used by third parties so it's not a privacy issue.
One possible way that you could do this (if you have a webserver) is sending the user to a page that is hosted somewhere online, and run a PHP script that emails the user. You would have to use this method because:
You can't easily use PHP in a chrome extension
You can't send emails through Javascript/jQuery

foursquare and share checkin?

Is it possible to create a checkin by allowing a user to click on button in a html page that takes them to a share location (checkin page)?
I am thinking- something like the twitter share url?
for example-
http://foursquare.com/share/?venue_id=12345
I want this functionality in order to allow users to swipe their nfc phone on a smart tag and it loads a html page with different options
On an Android-based or iOS-based mobile device, you can use special formed URLs in order to start the Foursquare application viewing the desired venue: https://developer.foursquare.com/resources/client
The URL https://m.foursquare.com/venue/#venue_id# (e.g. https://m.foursquare.com/venue/4b477346f964a520723226e3) can either be opened by the installed Android Foursquare App or opened by a normal browser (or other Intent receivers registered for that URL).
You can further use the URL https://foursquare.com/mobile/checkin?vid=#venue_id# to get to the mobile page, where you can just press "check in" or enter a shout. By checking-in via the mobile page (and not the app), you do not get points and are not able to earn Mayorships (see Foursquare support).
But you can, for example, create your own web app that accesses the Foursquare API and performs the check-in for the OAuth'ed users. By using the HTML5 Geolocation feature, you can also send the mobile device's Lat/Lon coordinates to your web app and perform valid check-ins that also count for Mayorships, etc. A good start is Foursquare's developer page: https://developer.foursquare.com/overview/

Resources