"Hello world" as a Gmail plugin? - gmail

I am trying to find out what the tech is like to create a Gmail plugin that accesses my attachments. Just to get started, what would be "Hello world" as a Gmail plugin? What would be the steps to create it?

Yes, you can creates plugin for Gmail, and two types:
Sidebar
Contextual
Look for Gadgets in gmail. After learning how to use these, you can add them to your gmail or anybody that wants to can do the same, to do so you can have Google host it.
It's easy if you know some HTML, JavaScript, and XML.
Good Luck
Take a look at these links:
https://developers.google.com/google-apps/gmail/contextual_gadgets
https://developers.google.com/gadgets/docs/basic

You cannot create Gmail plugins.
(Unless you work for Google)

Doing some quick research it looks like Google now supports a GMail api to build gadgets and/or plugins. I haven't done it myself, however it seems like they want it to work.
https://developers.google.com/google-apps/gmail/

I think you can do that. (You will find Hello World program too)
http://code.google.com/apis/gmail/gadgets/contextual/

Last year, Google released a GMail API and it allows you to perform the actions you want, but perhaps not with the UX you're looking for embedded directly inside of GMail. You can find it here:
https://developers.google.com/gmail/api/
Depending on exactly how you need it to work, you might be able to use either Contextual Gadgets (https://developers.google.com/gmail/contextual_gadgets) or a Google Chrome Extension to do what you need.

Google has recently introduced add-ons for Gmail (probably on Oct, 24 2017). It can be developed with Google Apps Script. Google's documentation says
What Gmail add-ons can do ?
Displaying additional information for the user in the Gmail UI.
Connecting to non-Google services, to retrieve information or take other actions.
Providing an interactive interface to allow the user to control the add-on or send information to another service.
I am not pretty sure (will go deep into it in coming days) whether you can deal with attachments. But I logically feel you can do that as well, because GAS supports handling attachments.
As of now, Google is not allowing to publish new add-ons however they will allow it in future.
While a few add-ons have been made available in the G Suite
Marketplace for users to install, it is not currently possible to
publish your own add-on to the Marketplace.
How can you publish your own add-on ?
As of now (26th Oct, 2017), they consider it on request basis. If you have a cool idea, fill this form to let them know about it. You will get notified once they accept your listing.
Here is how the add-on interface looks like inside Gmail

It is not possible to create plugins for Gmail. There is no developer API as such - only access to send/retrieve emails using standard SMTP/IMAP protocols.
See http://code.google.com/apis/gmail/oauth/

Related

Can we develop Google Contextual Gadget?

I am trying to develop a contextual gadget, but not getting any documentation for it. Google provides a document which is very old and not updated from long time. Process explained in that documentation to develop a gadget is deprecated.
Please if anyone have solution, help me.
You may want to check full documentation in Gmail Contextual Gadgets which was last updated June 29, 2016.
To develop a Gmail Contextual Gadgets, you may want to first check the given implementation parts also discussed in the documentation. Then, you may go through these summary of steps:
Use JQuery, or write JavaScript that conforms to ECMAScript 5 Strict Mode.
Note: You need to be using the correct development frameworks to provide an extra layer of protection between your gadget's potential vulnerabilities and your end users. To find out why, see Using the right frameworks for security.
Choose one or more pre-canned extractors. This determines which type of content will trigger your gadget.
Write a manifest for the gadget.
Write the gadget spec. This determines what the gadget will do when it is triggered.
Publish the gadget spec to a location which is accessible on the public Internet. An intranet will not work. Your hard drive will not work. (Why? Google's servers need to download the gadget. If they can't reach it, then Gmail can't display it.)
Install the gadget.
Test the gadget by sending yourself some email. The gadget should appear in Gmail whenever you read an email that contains the right sort of content. For more tips on testing gadgets, see Publishing Your Gadget in the gadgets API site.
It will really help if you go through the documentation as there are best practices, limitations and important details that you should note.
This related SO post might also help.

Google chat badge not working anymore?

I was using google talk chat badge (chatback - small iframe code that enables remote user to chat with you as anonymous) for some years but now it is not working anymore. The generated code is fine as it seems it opens a new window and all but after a second, it redirects to support.google.com page which of course is not of much use.
I rechecked the code, generated new code, didn't help. Again redirects to support.google.com. The code is generated from http://www.google.com/talk/service/badge/New
Anyone knows what's going on? Have they discontinued it or?
Also, a suggestion - is there any alternative web-presence button like that for other messengers which don't require client on other end. For Skype, Windows Live or some other messenger?
According to KatherineG at Google the chat badge is no longer supported. http://productforums.google.com/forum/#!topic/chat/_VpluJc6IfU
We are looking into using Crafty Syntax for a replacement.
http://www.craftysyntax.com/
Yup, been a while now - it was great while it lasted. The personal workaround that I am using is to sign up for a live chat service and hook it up with Gtalk. I am currently using ClickDesk - http://www.clickdesk.com/
Visitors chat using the live chat interface and I use the Gtalk interface.
For a while I used MeeboMe in combination with MeeboMe notifier but then it died as well (company was purchased by Google and the product was killed) I found some good alternatives myself so I am sharing them. Ironically, they are recommended by MeeboMe after they discontinued their service. Both are free.
Zoho Live Support - https://chat.zoho.com/
Yahoo! Pingbox - http://messenger.yahoo.com/pingbox/ (requires Yahoo! account but otherwise is great)
Too bad large companies simply kill useful products. But as far as I am concerned, Yahoo! Pinbox is even better than both Google chat badge and MeeboMe (at least for my needs) and can be customized to great extent.
I recommend ClickDesk - http://www.clickdesk.com too if you like to use Google Talk or Skype.
However, if you want to code - you can use xmpp protocol and hook it up with Pidgin notifications. Google Appengine also has notifications which I believe is what ClickDesk uses.

Automatically create GMail filters based on externally hosted word list

I'd like to easily import a word list, hosted on Github, to GMail as archive filters. Then later re-run this process to update the list.
The goal is to provide blacklists against common known Finnish spammers.
Possible options I have considered
Bookmarklet
Using GMail API
Creating GMail Labs extension (or whatever they are called)
What kind API options I have for maintaining GMail filter list? Programming language does not matter.
Optionally this would be a single click / single command operation e.g. from terminal or browser bookmark.
Today I was curious about this myself, although for a different reason... I found this info and thought I'd risk a bit of necromancy :)
You should take a look at Gmail settings API - filters
There is a Java wrapper

Import/export google mail (was "[is it possible to] create custom Google Lab")

Is it possible to create a custom Google Lab project? Or do Google Engineers have to create them? I'd like to integrate Gmail with another web application on a company web server.
If that is not possible, is there a way to import/export google mail in some format (ie: XML, HTML, etc..) for a specific gmail user or group of gmail users?
No.
You're looking for the IMAP protocol, which allows you to interact with Gmail messages.
No, it's not possible. Google Labs projects are Google's own experiments, not something you can add to yourself.
As Nadir Muzaffar said, maybe Gmail's API is what you're looking for: https://developers.google.com/gmail/
I'd like to add that you may create a browser extension.
You may start with experimenting with Developer toolbar (F12) and then pack your javascript to an extension.
If you use I.E. Chrome, see I.E. https://robots.thoughtbot.com/how-to-make-a-chrome-extension or try to look at your current extensions in order to understand how it's working ( ~/.config/google-chrome/Default/Extensions/ or ~/.config/google-chrome/Default/Extensions/ )
Note that if GMail changes, your extension may not work anymore.

Getting started with Gmail Plugin development

I would like to get into Plugin development using the Gmail API and as such I would like to ask those who already have experience in it a few questions.
What language / languages should I be familiar with? I'm not familiar with Python, PHP, or JavaScript. Will I need to pick up on these?
What level of control do I have on what my plugin can do? Can I for example change the interface or add shortcuts or RSS feeds as a sidebar?
I know a lot of the examples mentioned already exist but I would like to try my own hand at it.
Peter posted a solid list of the official Gmail APIs.
On the other hand, most of the major plugins that you may have heard about are browser plugins that just modify the page source directly, even though there's no official API for it. There used to be a GreaseMonkey API that was a good starting point, but that wasn't supported and no longer works. Best place to start is with a copy of Chrome, creating a content-injection plugin that works on the Gmail page.
Happy to provide some further details if you can clarify what you're going for since I went through this myself a few months back.

Resources