I have google app account for my domain. Google app documentation says To use Gmail with Atom, you must already have an aggregator. I use php simplepie to parse rss and atom feeds on my app. Google documentation says url is https://mail.google.com/mail/feed/atom, and enter your Gmail address and password.
I can set url using Set the feed URL. I cannot seem to figure out, how to add the username and password. I appreciate any help. Thanks
UPDATE:-
One of my friends said this works in python.
import urllib2
def get_unread_msgs(user, passwd):
auth_handler = urllib2.HTTPBasicAuthHandler()
auth_handler.add_password(
realm='New mail feed',
uri='https://mail.google.com',
user='%s@gmail.com' % user,
passwd=passwd
)
opener = urllib2.build_opener(auth_handler)
urllib2.install_opener(opener)
feed = urllib2.urlopen('https://mail.google.com/mail/feed/atom')
return feed.read()
I have no knowledge of python. I appreciate anybody who can help me understand how to implement something similar in php.
I appreciate all your help.