Skip Menu |

This queue is for tickets about the WWW-Contact CPAN distribution.

Report information
The Basics
Id: 41853
Status: resolved
Priority: 0/
Queue: WWW-Contact

People
Owner: Nobody in particular
Requestors: nishttal [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: WWW::Contact::GMail : Bug
Date: Sun, 21 Dec 2008 17:14:08 -0500
To: bug-WWW-Contact [...] rt.cpan.org
From: Nishant Mittal <nishttal [...] gmail.com>
Hi Fayland, First off I want to thankyou for writing a very useful module.
However, I feel I may have stumbled upon a bug. Please refer to the small code below...

#!/usr/bin/perl
use Data::Dumper;
use WWW::Contact;

    my $wc       = WWW::Contact->new();
    my @contacts = $wc->get_contacts('<email>', '<password>');
    my $errstr   = $wc->errstr;
    if ($errstr) {
        die $errstr;
    } else {
        print Dumper(\@contacts);
    }

I got the following output... The problem is that the email and names dont match with each other. For example 'betterchoicemovers@hotmail.com' is the email for 'A Better Choice Estimator' (which is 4 records down) and so on...

do you know what I am doing wrong?

$VAR1 = [
          {
            'email' => 'betterchoicemovers@hotmail.com',
            'name' => '(unknown)'
          },
          {
            'email' => 'aadit12@gmail.com',
            'name' => '(unknown)'
          },
          {
            'email' => 'abhihek@meheretech.com',
            'name' => '(unknown)'
          },
          {
            'email' => 'abshekgoyl@gmail.com',
            'name' => '(unknown)'
          },
          {
            'email' => 'kmarchal@gmail.com',
            'name' => 'A Better Choice Estimator'
          },
          {
            'email' => 'aditihaudhary@yahoo.com',
            'name' => 'aaditya'
          },
          {
            'email' => 'aditi8@yahoo.com',
            'name' => 'abhishek'
          },


--
thanks,
Nishant
can you do follows for me? so that I can debug it out. step 1, login with your account in https://mail.google.com/mail/ step 2, after that, try https://mail.google.com/mail/?ui=html&zy=a step 3, Click "Contacts", then click "All Contacts" step 4, Save the source code then send it to me through fayland at gmail dot com. Thanks. if the email is not so important, please just give me the password then I can have a try then.
what's your WWW::Contact::GMail version? it sounds like we already fixed it in 0.17 please confirm it. Thanks.
just try "cpan WWW::Contact" see if it upgrade the module. Thanks.
it's fixed.