The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WebService::DMM - DMM webservice module

SYNOPSIS

use WebService::DMM;
use Config::Pit;

my $config = pit_get('dmm.co.jp', require => {
    affiliate_id => 'DMM affiliate ID',
    api_id       => 'DMM API ID',
});

my $dmm = WebService::DMM->new(
    affiliate_id => $config->{affiliate_id},
    api_id       => $config->{api_id},
);

my $response = $dmm->search( %params );
die "Failed to request" unless $response->is_success;

for my $item (@{$response->items}) {
    ....
}

DESCRIPTION

WebService::DMM is DMM webservice module. DMMhttp://www.dmm.com is Japanese shopping site.

INTERFACES

Class Methods

WebService::DMM->new(%args) :WebService::DMM

Create and return a new WebService::DMM instance with %args.

%args must have following parameter:

Instance Method

$dmm->search(%param) : WebService::DMM::Response

%params mandatory parameters are:

%param optional parameters are:

$dmm->last_response : Furl::Response

Return last response which is a Furl::Response instance.

SERVICE AND FLOOR

DMM.com services are:

DMM.co.jp services are:

CUSTOMIZE USER AGENT

You can specify your own instance of Furl to set $WebService::DMM::UserAgent.

$WebService::DMM::UserAgent = Furl->new( your_own_paramter );

EXAMPLES

There are many examples in the "eg/" directory in this distribution.

AUTHOR

Syohei YOSHIDA syohex@gmail.com

COPYRIGHT

Copyright 2013 - Syohei YOSHIDA

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Official Guide https://affiliate.dmm.com/api/guide/