Regru::API::Shop - REG.API v2 domain shop management functions
version 0.052
REG.API domain shop management.
Always returns the name of category: shop. For internal uses only.
shop
For testing purposes. Scope: clients. Typical usage:
$resp = $client->shop->nop;
Returns success response.
More info at Shop management: nop.
Puts one or more lots to domain shop.
Scope clients. Typical usage:
$resp = $client->shop->add_lot( description => 'great deal: two by one!', category_ids => [qw( 10 15 )], rent => 0, keywords => [qw( foo bar baz )], price => 200, lots => [ { price => 201, rent_price => 0, dname => 'foo.com' }, { price => 203, rent_price => 0, dname => 'bar.net' }, ], sold_with => '', deny_bids_lower_rejected => 1, lot_price_type => 'fixed', );
Returns success response if lots was added or error otherwise.
More info at Shop management: add_lot.
Updates a lot entry at domain shop.
$resp = $client->shop->update_lot( dname => 'underwood.com', description => 'For the House of Cards fans only!', category_ids => [qw( 4 10 )], rent => 0, keywords => [qw( spacey hoc vp potus )], price => 2000, sold_with => 'tm', deny_bids_lower_rejected => 1, lot_price_type => 'offer', );
Returns success response if lots was updated or error otherwise.
More info at Shop management: update_lot.
Deletes the lots from domain shop.
$resp = $client->shop->delete_lot( dname => [qw( foo.com bar.net )], );
Returns success response if lots was deleted or error otherwise.
More info at Shop management: delete_lot.
Retrieves an information on the lot.
$resp = $client->shop->get_info( dname => 'quux.ru', );
Answer will contain the set of metrics (such as keywords, start_price, rent_price etc) for requested lot.
keywords
start_price
rent_price
More info at Shop management: get_info.
Retrieves a current list of lots.
$resp = $client->shop->get_lot_list( show_my_lots => 1, itemsonpage => 25, pg => 2, );
Answer will contain a lots field with a list of lots and a lots_cnt pointed to total available items.
lots
lots_cnt
More info at Shop management: .
Retrieves a categories/subcategories list. Categories are divided into subcategories.
$resp = $client->shop->get_category_list;
Answer will contain a category_list field with a list of categories each of divided into subcategories. Every subcategory will contain the name and the identiefer.
category_list
More info at Shop management: get_category_list.
Retrieves a list of buzz tags.
$resp = $client->shop->get_suggested_tags( limit => 25, );
Answer will contain a tags field with a list of popular tags.
tags
More info at Shop management: get_suggested_tags.
Regru::API
Regru::API::Role::Client
REG.API Domain shop management
REG.API Common error codes
Please report any bugs or feature requests on the bugtracker website https://github.com/regru/regru-api-perl/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Polina Shubina <shubina@reg.ru>
Anton Gerasimov <a.gerasimov@reg.ru>
This software is copyright (c) 2013 by REG.RU LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Regru::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Regru::API
CPAN shell
perl -MCPAN -e shell install Regru::API
For more information on module installation, please visit the detailed CPAN module installation guide.