in reply to Google Provisioning API - method not found

From a short look at the code, it seems that VUser::Google::ProvisioningAPI is a factory for either VUser::Google::ProvisioningAPI::V1_0 or VUser::Google::ProvisioningAPI::V2_0 objects. You could try to find out what kind of object you got back by printing ref:

print ref $gmail;

Maybe you have an older version of the module loaded?

print $VUser::Google::ProvisioningAPI::VERSION; require VUser::Google::ProvisioningAPI::V2_0; print $VUser::Google::ProvisioningAPI::V2_0::VERSION;

Replies are listed 'Best First'.
Re^2: Google Provisioning API - method not found
by McDarren (Abbot) on Jul 23, 2008 at 13:01 UTC
    print ref $gmail;
    gives me...
    VUser::Google::ProvisioningAPI::V2_0
    BUT..... I think I just figured it out myself.
    I had a closer look at the module source, and this is what it looks like:
    =pod RetrievePageOfEmailLists($startList) =over Get a single page (100 lists) of email lists. =cut =cut sub RetrievePageOfEmailLists { my $self = shift; my $start_emaillist; my $url = GOOGLEBASEURL.$self->{domain}."/emailList/$APIVersion"; if ($start_emaillist) { $url .= "?startEmailListName=$start_emaillist"; } my @entries = (); if ($self->Request('GET', $url)) { foreach my $entry (@{ $self->{result}{'entry'} }) { push @entries, $self->buildEmailListEntry($entry); } } else { return undef; } # Return list of EmailListEntries return @entries; }
    Notice that extra =cut in there?
    I tried commenting that out, and bingo!