McDarren has asked for the wisdom of the Perl Monks concerning the following question:
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:
The above code produces the following output:#!/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;
I can't for the life of me figure out why the method isn't located.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'm hopeful that I'm missing something obvious - can anyone tell me what that something is?
Thanks,
Darren :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Google Provisioning API - method not found
by syphilis (Archbishop) on Jul 23, 2008 at 12:58 UTC | |
by McDarren (Abbot) on Jul 23, 2008 at 13:05 UTC | |
by syphilis (Archbishop) on Jul 23, 2008 at 13:13 UTC | |
by Anonymous Monk on Jul 23, 2008 at 13:25 UTC | |
by syphilis (Archbishop) on Jul 23, 2008 at 13:35 UTC | |
by McDarren (Abbot) on Jul 24, 2008 at 10:05 UTC | |
|
Re: Google Provisioning API - method not found
by Corion (Patriarch) on Jul 23, 2008 at 12:54 UTC | |
by McDarren (Abbot) on Jul 23, 2008 at 13:01 UTC |