Logging in into Gtalk using EXMPP
User = "YourUsername@gmail.com",
Password = "Password",
JID = exmpp_jid:parse(User),
Session = exmpp_session:start({1,0}),
exmpp_session:auth_info(Session, JID, Password),
{ok, _StreamId, _Features} = exmpp_session:connect_TCP(Session, "talk.l.google.com", 5222, [{starttls, enabled}]),
{ok, _FinalJID} = exmpp_session:login(Session, "PLAIN").
Written by David Michael Nelson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Erlang
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#