I am implementing an GAE application where I need to show the chat status of any user using user's gmail address that belongs to a certain domain.
The user has no idea of the application and the application has not being added to the user's contact/IM list.
Is it possible?
No, that's not possible. XMPP only exposes status messages for contacts that have accepted a subscribe request.
Related
I am successfully able to read my inbox content using Gmail API with desktop application.
But when I am trying to read other person gmail inbox, I am getting Delegation denied exception?
So my question here, will Gmail Api allow the applications to access other persons inbox or only the person who credentials are being used in generating Client_secret file??
Yes, it is possible to access others Gmail inbox. To access Gmail mailboxes, use Gmail API. Gmail API gives you flexible, RESTful acess to the user's inbox with a natural interface to Threads, Messages and History.
All you need to use the Gmail API is the client library for your choice of language and an app that can authenticate as a Gmail user. All requests to the Gmail API must be authorized by an authenticated user. You should use server-side flow when your application needs to access Google APIs on behalf of the user.
Here's a documentation how to implement Server-Side Authorization: https://developers.google.com/gmail/api/auth/web-server
This may be due to regulatory restrictions, I'm not sure why but it turns out that Google has not yet built any back-end support options for tracing Gmail messages within the Google Workspace administrator console
If your organization needs access to another user's Gmail account or tracks Gmail messages, I Highly Recommend using the Gmail Reader, it's a verified Google Workspace plugin, with a very user-friendly interface and a quick safe installation process directly from your Google Workspace Marketplace administrator console.
see the EZ Gmail Reader at Google Workspace Marketplace
How can I send mail using Google's mail API without adding that email address to the project? Right now Google says you need to add them as a developer but I don't want the user to see anything about the project.
Example would be a contact form email coming from sales but I don't want sales to find their way into the google dev console and see our costs.
You could use services like SendGrid which give you a lot more features than GAE's Mail API.
See a more detailed answer here:
send email on Google App Engine from custom domain
You could create a new account sales-mailer#whatever that looks like it is coming from sales, but for which only you have access. Then give that account View-only access to your project.
In mirror api glassware we identify users by the unique user id generated and sent to the glassware by Google-oauth... But my glassware contains a gdk counterpart which needs to send information to the mirror api service. My question is that how do we send such information (e.g. an url request to the glassware mirror-api service) automatically in the background, without using "google notification by sharing with a specific contact", so that we can uniquely identify the user from mirror api glassware side as well as extract the information for the rest of the purpose.
Is there any glass Id that I can send along with the request from gdk and on the mirror-api side get the user's google account from this glass Id and using some other api generate the user Id from the google account just like google-oauth. Once we have the user Id, we can send static timeline cards to that user using simple mirror-api.
Please guide me with whatever solutions available other than "notification subscription".
I've already asked a question like this here: How to call the Mirror API from GDK?
It's seeming like the answer right now is that we can't communicate between the two APIs and everything in Mirror is separate from GDK. I've been doing some digging, trying to get things like the device's contact list since the Mirror documentation refers to your app adding a Contact but it seems like it doesn't use the same Content Providers as Android for this.
From the other thread, my best two ideas for binding a GDK app to a User is to:
1) Generate a QR code on your web service side and scan that in, it will have an encoded authentication token the app will be able to use to identify the user. Obviously this requires integration with the ZXing library and working with the camera.
2) Generate or allow the user to enter a phrase on the web service side that can be treated as a bearer token. In the GDK, prompt the user to speak this phrase and then pass it to your web service, which will reply with a similar authentication token to tie the app to the user. As odd as this is, I do kindof like it since it's simpler from a GDK implementation side.
An application that uses the Mirror API is more likely than not some type of a web service. Why can you not invoke HTTP commands from Glass to your application being hosted on a server?
The Mirror API is a set of REST commands invoked to a Google Server. That same google server then syncs to Glass where Glass will pull the updated content with HTTP requests.
Simply put, create a path in your web app that accepts HTTP commands.
This is so interesting question, I think. I am developing a chat application using xmpp in google go. Upon testing, I could not send chat message to a google user unless that user would add my app as contact or initiate the chat session via gtalk/chat at his gmail account. Is it possible to subscribe the user to my app when he signup for membership in my app? User service does not have any properties for this nor a hash or code or cookie for me to store and know that this user has approved sending chat from the app. Thanks a lot!
No, this is not possible. The user has to give explicit permission to add your bot to their contact list; simply signing in is not enough.
I create a web application in Python for Google App Engine that sends a mail when I make some stuff. I used my Gmail account to send the email and I would like to save that email in my sent mail. It's possible?
No this is not possible since Google App Engine is not directly connected with your Gmail account and in the sent items only items that are sent through Gmail are appearing. As Sebastian Kreft pointed it out, you could sent a copy to yourself and create a filter for it.
I'm not sure if the non delivery reports are coming back on sender's email address, but either case make sure that you have access to that email or set the reply_to field.
You cannot be sure your e-mail will reach it's destination with app engine mail api, because you never receive any information about e-mail delivery from the GAE mail api and you cannot use a return-path.
Because of that I use app engine together with Amazon SES.
Another trick is to use the gmail api of google apps script:
See: https://developers.google.com/apps-script/service_gmail
Apps script is also able to talk to GAE.