Greetings,

Update: This has been solved. Please see reply from syphilis below (thanks Rob) :)

Our company has recently switched to Gmail, and we've been using the VUser::Google::ProvisioningAPI::V2_0 module for provisioning users and lists, etc.

All has been going well until today, when I tried to use the RetrievePageOfEmailLists() method.

The best way to demonstrate my problem is by example, so please consider the following:

#!/usr/bin/perl -l use strict; use warnings; use Data::Dumper::Simple; use VUser::Google::ProvisioningAPI::V2_0; BEGIN { for (keys %INC) { print "$_ => $INC{$_}" if $_ =~ /Google/; } } require 'gmail-tools.pl'; my $config_file = 'gmail.cfg'; my $config = get_credentials($config_file); my $gmail = new VUser::Google::ProvisioningAPI($config->{domain}, $con +fig->{user}, $config->{pass}, '2.0'); $gmail->RetrievePageOfEmailLists('.'); print Dumper($gmail->{result}) and exit;
The above code produces the following output:
VUser/Google/ProvisioningAPI/V2_0.pm => /usr/local/share/perl/5.8.8/VU +ser/Google/ProvisioningAPI/V2_0.pm VUser/Google/ProvisioningAPI.pm => /usr/local/share/perl/5.8.8/VUser/G +oogle/ProvisioningAPI.pm Can't locate object method "RetrievePageOfEmailLists" via package "VUs +er::Google::ProvisioningAPI::V2_0" at ./test.pl line 20.
I can't for the life of me figure out why the method isn't located.
RetrievePageOfEmailLists() is a method that was added in V2 of the module. I've checked the source, and it is definitely there. The only thing I can come up with is that it's failing because it doesn't exist in ProvisioningAPI.pm. But that doesn't make sense, as I've used other V2 specific methods (eg. RetrievePageOfRecipients()), which have all worked fine.

I'm hopeful that I'm missing something obvious - can anyone tell me what that something is?

Thanks,
Darren :)


In reply to Google Provisioning API - method not found by McDarren

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.