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 :)
In reply to Google Provisioning API - method not found by McDarren
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |