WebService-Etsy
view release on metacpan or search on metacpan
lib/WebService/Etsy/Resource.pm view on Meta::CPAN
}
sub author {
my $self = shift;
return $self->_getUser( get_shop => $self->from_seller, user_id => $self->author_user_id, @_ );
}
sub subject {
my $self = shift;
return $self->_getUser( get_shop => ! $self->from_seller, user_id => $self->subject_user_id, @_ );
}
#-------
=head2 WebService::Etsy::Resource::ShopSection
The object includes methods corresponding to the field values described at L<http://developer.etsy.com/docs#shop_sections>.
=head3 Additional methods
=over 4
=item C<listings()>
Get the listings in a section. Equivalent to calling C<getShopListings> section's ID as the section parameter. You can pass in any other parameters C<getShopListings> accepts.
=back
=cut
package WebService::Etsy::Resource::ShopSection;
use base qw( WebService::Etsy::Resource );
__PACKAGE__->mk_accessors( qw( shop section_id title listing_count ) );
sub listings {
my $self = shift;
my %params = ( user_id => $self->shop->user_id, section_id => $self->section_id, @_ );
return $self->api->getShopListings( %params );
}
#-------
=head2 WebService::Etsy::Resource::Method
The object includes methods corresponding to the field values described at L<http://developer.etsy.com/docs#methods>.
=cut
package WebService::Etsy::Resource::Method;
use base qw( WebService::Etsy::Resource );
__PACKAGE__->mk_accessors( qw( name description uri params type http_method ) );
package WebService::Etsy::Resource;
=head1 SEE ALSO
L<http://developer.etsy.com/docs#resource_types>, L<WebService::Etsy::Response>.
=head1 AUTHOR
Ian Malpass (ian-cpan@indecorous.com)
=head1 COPYRIGHT
Copyright 2009, Ian Malpass
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
=cut
1;
( run in 1.083 second using v1.01-cache-2.11-cpan-75ffa21a3d4 )