feature 874 added: new Web API method pwg.tags.add.

git-svn-id: http://piwigo.org/svn/trunk@2634 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2008-10-01 21:08:51 +00:00
parent 610e5ada6e
commit 600e2d87ec
4 changed files with 88 additions and 0 deletions
+15
View File
@@ -152,6 +152,21 @@ if ($opt{action} eq 'pwg.categories.add') {
print Dumper(from_json($response->content));
}
if ($opt{action} eq 'pwg.tags.add') {
$form = {
method => 'pwg.tags.add',
name => $opt{define}{name},
};
my $response = $ua->post(
$conf{base_url}.'/ws.php?format=json',
$form
);
use Data::Dumper;
print Dumper(from_json($response->content));
}
$query = pwg_ws_get_query(
method => 'pwg.session.logout'
);