Is it possible to connect to google and run a google apps script from a desktop java application?
I found this info:
https://developers.google.com/appengine/docs/java/urlfetch/usingjavanet?hl=en#Simple_Requests_With_URLs
It says that you can connect to google app engine from java application via HTTP or HTTPS using java.net.URLConnection, the page has some examples, but none to connect to google apps script.
The reason I need to connect to google app script is because I have a firewall on my company so I can't connect to gmail via smpp or IMAP, so I want to send gmail mails from a google script.
Thank you very much.
Yes you can. Look at how to publish an apps script in gas help. Publish it as anonymous and return a contentService. Then urlFetch it from java passing the necessary url params.
Related
I have to develop an biometric authentication application.
The application will be written in java and it will be an desktop app, I want to use my smartphone for the fingerprint sensor, but I don`t know how to build this connection betwenn application and phone.
The main application will be installed on a computer without web.
I would be grateful if you have any idea or examples how to do this. Thank you!
You should have an app on your smartphone which uses the fingerprint authentication API.
If you are looking to use an android phone, you can refer this
https://developer.android.com/about/versions/marshmallow/android-6.0#fingerprint-authentication
You can create a simple APP using this API.
When user authenticates, then you can send message to your desktop java application from this App.
By 'without web' if you mean without internet, but can be connected to a local network, then you can send message via TCP/UDP.
Or if you wont be able to connect to any network, then you can try bluetooth.
If bluetooth is also not available, then you can connect your phone to your computer via a USB cable and communicate using Serial communication. There are a few external libraries available for this.
By looking to this URL I know we can connect to XMPP server using this link
Good XMPP Java Libraries
but I want to create my Own XMPP server, currently we have Openfire, tigase and many other Servers available. but is there any Libraries and tutorial are available for making an XMPP server from scratch?
I want to make a server that can handle all web, client application, Android and iOS requests (for Chat and other purpose).
WebChat is perfect for this . You will have to download Openfire Server which is open source XMPP Server , then install Webchat over it , which will provide a web based interface to chat . You can use Android WebView to customize look and feel in an Android application
I am Developing CCS server using XMPP,I followed all steps given on the developer.android website.This code(using java smack library) runs perfectly,as I am getting notification on my android mobile app.I have CCS service enabled on my App Engine Project.But when I tried to deploy it on App engine I am getting.
java.lang.NoClassDefFound Exception for
org/jivesoftware/Smack/XMPPException !!!!!!
after going through some websites (including this also)and developer.android site I found that
Note that Google App Engine does not support connections to CCS
My question is:
1>>.App Engine doesn't support java smack library or it don't support connection to ccs(xmpp)end point at all?
google has also provided XMPP service to App Engine
2>>.Is it possible to implement GCM CCS(XMPP) server using googles XMPP library?If it is possible please give some reference or tutorial.
I can really use some help with this questions,because I am so confused what do next!!!
thanks in advance!!!
It seems that GAE does not support connections to CCS. https://developer.android.com/google/gcm/server.html
This documentation gives a hint that it is possible. Also have a look into that post.
I'm wondering if it is possible to host an Application Server on Google App Engine, I'm not planning to host a Web Application, but yes an App Server.
For example, hosting a Chat Server, that would Authenticate users log ins, register new users, establish a connection between two users running on clients developed to work with that Server.
If not, is there a similar service to GAE which I can use for that purpose.
Thanks a lot.
The XMPP and Channel APIs should let yo do it. If your client can make HTTP requests and your server can respond to them, then yes, you should be able to do it.
Yes this is possible.
Have a look at the Google Docs for an introduction to what the platform looks like and what APIs are available. And crucially what restrictions there are. For chat applications you might be interested in the Channel API.
i want to develop gtalk application for the mobile
please tell me the name of library that is used to access the gmail account thr J2ME
Your Question title says you want to access gmail emails , but in the description it says to develop gtalk application .
If you are looking for gtalk client development check out the following resources
Why you need to develop gtalk client for Mobiles , There is already a Plenty of gtalk . To learn you can try with Open Source Application to get started .
MGtalk : Google Talk for mobile project .Jabber client for j2me midp 2.0 platform, supports some Google Talk server features. May run on any j2me midp 2.0 mobile phone or communicator.
GTMobile is a client of Google Talk that run on java phones. It requires CLDC 1.1 and MIDP 2.0 support.
Both uses JabberService
EDIT If you are looking for gmail in Mobile these API will come Handy for you
Mail4me : is a lightweight implementation of the popular SMTP, POP3 and IMAP protocols - including MIME support - allowing wireless J2ME/MIDP devices to access the e-mail service at any time, and from any place
API docs for Mail4me
JavaMail can also be used for developing .
mMail midlet is a useful email client for mobile Java (J2ME) devices supporting GPRS data transfer. It is able to send and receive simple plain-text email messages.
Hope this Helps !
JavaMail can not be using on the J2me Platform