XMPP

How to use JAXL (Jabber XMPP Library in PHP) to import Gtalk contacts of any user

Posted on

JAXL is an open source Jabber XMPP Client library written in PHP. It provides a self titled class JAXL which implements XMPP protocol. It can be extended to write custom event handler for every message or presence received. Developers are using JAXL for developing real time applications. Checkout 5 exciting gaming bots you can make using JAXL. However one thing which goes un-noticed is that JAXL can also be used to import Gtalk contacts of any user. This is infact one of the very first thing which JAXL class do, after successful authentication with the Gtalk servers i.e. import the […]

XMPP

5 exciting (gaming) bots you can create using Jaxl (Jabber XMPP Library) in PHP

Posted on

Jaxl is an open source XMPP client library written in PHP. The object oriented structure of JAXL allow developers to build various extensions using Jaxl library as their base. If used intelligently, JAXL client library is capable of doing more than just chat message transfers. Here are a few applications where developers have tried using JAXL for delivering more than just chat messages: “I used your library to develop a prototype that connects dynamically some users to a XMPP server if an external event is detected. The script runs like a daemon. Because of your object-oriented class design it was […]

XMPP

How to broadcast a message to your Gtalk friends using JAXL?

Posted on

In this era of social media we all look forward to easy and utility tools to easily market our site and blogs. In this post I will demonstrate a ready to use script, which will help you broadcast your message to everyone on your gtalk friend list in one go. jaxl4broadcast.class.php jaxl4broadcast.class.php is an extension of JAXL library. This extension simply saves all your buddy list in an array while connecting with Gtalk servers, and then send out your custom message to all of them in one go. The code that will do the task: function setStatus() { $this->sendStatus($this->status); print […]

XMPP

Programatically control your google mails using JAXL v 1.0.4

Posted on

Google has released an API for almost all of their products including maps, feedburner and gadgets. However one of the API’s which every developer would have loved to make use of is “Google Mail API” which is still missing (available for premium google apps user only). Here in this post I would demonstrate how one can programatically control his/her google mails using JAXL without being a premium user of google mail account. For those who have landed on this post straight and have little knowledge about what JAXL is “JAXL stands for Jabber XMPP Library and for fun you may […]

XMPP

How to get dzone feeds as IM using JAXL? Add [email protected]

Posted on

The most funny part of knowing XMPP protocol is that you can execute all your daily web needs using it. Be it playing anagram online or achieving your status messages. And your life gets easy if you are using an XMPP Client Library like JAXL. Here I have tried to create a simple bot which allows you to read newest links posted on dzone category wise. Simply add [email protected] in your gtalk messenger and start by typing options. Available options are: frontpage: Will send you latest links on frontpage. queue: Will send you latest links in queue. tag: Send in […]

Open Source

Behind the scenes – How and What XML’s are exchanged by JAXL

Posted on

Pre-requisite Though it’s not mandatory but will be helpful if you have given a casual reading to the following RFC’s: Extensible Messaging and Presence Protocol(XMPP):Core Extensible Messaging and Presence Protocol(XMPP):Instant Messaging and Presence Case Study: Google Talk Server JAXL Sends >> <!–?xml version=”1.0″?–> <stream:stream xmlns:stream=“http://etherx.jabber.org/streams” version=“1.0” xmlns=“jabber:client” to=“gmail.com” xml:lang=“en” xmlns:xml=“http://www.w3.org/XML/1998/namespace”></stream:stream> Gtalk Acknowledges With >> <!–?xml version=”1.0″ encoding=”UTF-8″?–> <stream:stream from=“gmail.com” id=“981E0522D7363BDF” version=“1.0” xmlns:stream=“http://etherx.jabber.org/streams” xmlns=“jabber:client”> <stream:features>   <starttls xmlns=“urn:ietf:params:xml:ns:xmpp-tls”>     <required>   </required></starttls>   <mechanisms xmlns=“urn:ietf:params:xml:ns:xmpp-sasl”>     <mechanism>X-GOOGLE-TOKEN</mechanism>   </mechanisms> </stream:features></stream:stream> JAXL Sends >> <starttls xmlns=“urn:ietf:params:xml:ns:xmpp-tls”></starttls> Gtalk Acknowledges With >> <proceed xmlns=“urn:ietf:params:xml:ns:xmpp-tls”></proceed> JAXL Sends >> <!–?xml version=”1.0″?–> <stream:stream xmlns:stream=“http://etherx.jabber.org/streams” version=“1.0” xmlns=“jabber:client” to=“gmail.com” xml:lang=“en” xmlns:xml=“http://www.w3.org/XML/1998/namespace”></stream:stream> Gtalk Acknowledges With >> <!–?xml version=”1.0″ encoding=”UTF-8″?–> <stream:stream from=“gmail.com” id=“C01610C43D6A37A2” version=“1.0” xmlns:stream=“http://etherx.jabber.org/streams” xmlns=“jabber:client”> <stream:features>   <mechanisms xmlns=“urn:ietf:params:xml:ns:xmpp-sasl”>     <mechanism>PLAIN</mechanism>     <mechanism>X-GOOGLE-TOKEN</mechanism>   </mechanisms> </stream:features></stream:stream> JAXL Sends >> <auth xmlns=“urn:ietf:params:xml:ns:xmpp-sasl” mechanism=“PLAIN”>AGFjY192nbRbm3J1cGvxYWRzAG15QVRNcGlukT9zcpMxAjI=</auth> Gtalk Acknowledge With >> <success xmlns=“urn:ietf:params:xml:ns:xmpp-sasl”></success> JAXL Sends >> <!–?xml version=”1.0″?–> <stream:stream xmlns:stream=“http://etherx.jabber.org/streams” version=“1.0” xmlns=“jabber:client” to=“gmail.com” xml:lang=“en” xmlns:xml=“http://www.w3.org/XML/1998/namespace”></stream:stream> Gtalk Acknowledge With […]

XMPP

[email protected] – Online gaming enabled on Gtalk

Posted on

Anagram, many of you might be familiar with it or even played many a times back in school and colleges. Its a simple text based game, where you are given a jumbled word and you need to re-arrange it. E.g. You will be given huldos and you need to quickly identify that as should. So getting bored back in college or office, add [email protected] and type anagram to start gaming. Play and score well. Your score will turn up on the Gtalkbots front page. They have kept this game open for the world i.e. one can play this game even […]

XMPP

Save your and your friend’s status messages. Share and promote your website through your status

Posted on

Hello Everyone, http://gtalkbots.com Here is this new website which help you save your and your friends Gtalk status messages. It also provides a social bookmarking feature with a different edge. Are you fed up with posting your website and blogs at digg.com, delicious, stumble or any other such site there. If not, you must surely be fed up with the hard work you need to do to make sure your link reach out to millions out there. Well through this site, you just need to put your blog and site link as your gtalk status message and this site will  […]

XMPP

GTalk Status Message Collector

Posted on

Hello Everyone, I have started http://gtalkbots.com , based on the example demonstrated here. Try out and Help spreading the word. I am not a big fan of twitter, but after I heard they do something similar to what I will be demonstrating here. I thought of building this one out. So here is my demo application, also known as GTalk Chat Bot. Do the following things to get started: Add [email protected] in your GTalk Messenger. It will collect your status messages as and when you change them. You can view all your status messages by visiting this URL : http://abhinavsingh.com/webdemos/chatbot/ […]