Subject: | getShippingTemplate not working |
Date: | Fri, 9 Oct 2015 18:15:28 +0100 |
To: | bug-WebService-Etsy [...] rt.cpan.org |
From: | Andy Newby <andy.newby [...] gmail.com> |
I'm trying to get the latest version of this plugin going
with getShippingTemplate , as per the following (I added), in Methods.pm:
sub getShippingTemplate {
my $self = shift;
my $info = {
name => 'getShippingTemplate',
uri => '/shipping/templates/:shipping_template_id',
type => 'ShippingTemplate',
params => {'shipping_template_id' => 'array(int)'},
visibility => 'public',
http_method => 'GET',
defaults => {},
description => "Gets prices for shipping template",
};
return $self->_call_method( $info, @_ );
}
..while it looks like that should work, when I do:
my $api = WebService::Etsy->new( api_key => 'xxx', base_uri => '
https://openapi.etsy.com/v2' );
# Call API methods as object methods
my $resp = $api->getShippingTemplate( shipping_template_id => 'xxx' );
...all I get is an error:
<p><font face='Tahoma,Arial,Helvetica' size=2>Please enable debugging in
setup for more details.</font></p>
Error getting resource
https://openapi.etsy.com/v2/public/shipping/templates/:shipping_template_id?shipping_template_id=1138381042&api_key=xxxx:
403 Forbidden at test.cgi line 31.
I'm not sure what else to try. Other than that, it seems to work well -
just that I need to be able to retrieve getShippingTemplate, as per:
https://www.etsy.com/developers/documentation/reference/shippingtemplate
...as this is the only way I can seem to get the postage info (as to where
they will deliver!)
TIA
Andy