Facebook
Banner
XMPP JavaScript Library READ MORE

How to fetch gmail address book using curl php

PHP, Sachin Puri, 2010-10-16 00:57:01

To fetch gmail address book using PHP we make use of cURL functions of PHP. cURL is a library of functions which can be used to communicate with different servers.

To fetch gmail address book we first login to gmail account using Gmail account's username and password by cURL function and then by accessing a particular we can fetch address book

A sample code is give below download it on your php server then change username and password and run this script

If you have any query please post a comment. I will try to reply you soon.

Download
Download Code
Note: This Code uses cURL functions of PHP
Add Your Comment
   
    Yes! I want to receive all comments by email

  by Comprar seguidores instagram on 18-Jun-2019 07:30 pm
Admiring the time and effort you put into your blog and detailed information you offer!..
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by verizon customer care usa on 17-Mar-2019 08:53 am
A very excellent blog post. I am thankful for your blog post. I have found a lot of approaches after visiting your post.
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by best miter saw 2019 on 10-Mar-2019 08:03 am
I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, The web site style is perfect, the articles is really great : D. Good job, cheers
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by Outsourced cfo on 08-Mar-2019 08:51 am
Thank you for taking the time to publish this information very useful!
  • Reply
  •  2 Like
  •  1 Dislike
  • Report
  by rawalpindi board 8th class result 2019 on 04-Mar-2019 12:02 pm
It's really nice and meanful. it's really cool blog. Linking is very useful thing.you have really helped lots of people who visit blog and provide them usefull information.
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by James on 24-Nov-2017 04:04 pm
Thanks for any other informative web site. Where else may just I get that kind of information written in such an ideal way? I have a mission that I am just now operating on, and I have been on the look out for such information.
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by order on 08-Sep-2016 06:11 pm
Hi! This is my first visit to your blog! We are a
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by order on 08-Sep-2016 06:10 pm
Hi! This is my first visit to your blog! We are a
  • Reply
  •  2 Like
  •  2 Dislike
  • Report
  by Aneesh Khan on 19-Oct-2014 04:40 pm
Following Eror is coming once we I clicked on Download Warning: require_once(../cfg.php) [function.require-once]: failed to open stream: No such file or directory in /home/allie131/public_html/sachinpuri.com/popup/login.php on line 2 Fatal error: require_once() [function.require]: Failed opening required \'../cfg.php\' (include_path=\'.:/usr/lib/php\') in /home/allie131/public_html/sachinpuri.com/popup/login.php on line 2
  • Reply
  •  4 Like
  •  2 Dislike
  • Report
  by Javier on 25-Jan-2014 01:57 pm
Download not found!
  • Reply
  •  2 Like
  •  1 Dislike
  • Report
  by ravi on 03-Dec-2013 11:39 am
hi
  • Reply
  •  1 Like
  •  1 Dislike
  • Report
  by srssssss on 03-Dec-2013 11:38 am
sr
  • Reply
  •  2 Like
  •  1 Dislike
  • Report
  by rohit on 12-Nov-2013 01:31 pm
bbvcbv
  • Reply
  •  2 Like
  •  1 Dislike
  • Report
  by Bhushan Dhumane on 17-May-2013 07:29 pm
I have tryed allot to download code but it not. can ypu provide code...
  • Reply
  •  2 Like
  •  12 Dislike
  • Report
  by aradhan on 05-Jan-2012 11:58 am
thnx for the code. very usefull one!! I am able to login to the accounts setings page. now how can I go to my inbox page. I altered the code because all I wanted was to login to gmail inbox. any ideas or help plzz. thnx in advance :) :)
  • Reply
  •  15 Like
  •  45 Dislike
  • Report
  by Sachin Puri on 05-Jan-2012 05:43 pm
You have to look for the URL to download address book in CSV format (which you can get by simply logging in to your gmail account and then try to download your address book in csv format) then using CURL you have to access that URL and read that CSV file.
  • Reply
  •  2 Like
  •  3 Dislike
  • Report
  by kalaivani suran on 15-Jul-2011 11:37 am
I try it by changing the username and password,but tit shows an error
  • Reply
  •  2 Like
  •  3 Dislike
  • Report
  by jogesh on 30-May-2011 04:42 pm
thanks a lot for this script,i was tried a lot to access my gmail address book, and after goggling i found that script very helpful to me,thanks a lot ;)jogesh sharma
  • Reply
  •  5 Like
  •  3 Dislike
  • Report
  by ayush on 06-May-2011 11:16 pm
The above code doesn't work, blank page appears when i try to run the script. Also, i'm not able to login with above script. Also, explain the "sachin.txt" as a CookieFile
  • Reply
  •  4 Like
  •  3 Dislike
  • Report
  by Sachin Puri on 06-May-2011 11:17 pm
Sorry to reply you late. Code was not working because Google has changed some configuration at it's end. now i have updated the code and now it will work.sachin.txt is just a text file and you can give it any name this file is used to send any cookie data required but in our case there is no need to send any data.
  • Reply
  •  7 Like
  •  3 Dislike
  • Report
  by sureshkumar on 04-May-2011 01:56 pm
tre
  • Reply
  •  2 Like
  •  3 Dislike
  • Report
  by Raj Kumar on 25-Nov-2010 08:33 pm
Thank a lot i was stuck in this. Thank once again
  • Reply
  •  5 Like
  •  4 Dislike
  • Report