diff options
Diffstat (limited to 'tools/piwigo_remote.pl')
-rw-r--r-- | tools/piwigo_remote.pl | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/piwigo_remote.pl b/tools/piwigo_remote.pl index 89597ed65..90dc528ac 100644 --- a/tools/piwigo_remote.pl +++ b/tools/piwigo_remote.pl @@ -18,7 +18,6 @@ $ua->cookie_jar({}); my %conf; $conf{base_url} = 'http://localhost/~pierrick/piwigo/trunk'; -$conf{partner_key} = 'youhou'; $conf{response_format} = 'json'; $conf{username} = 'pierrick'; $conf{password} = 'z0rglub'; @@ -37,7 +36,7 @@ my $form = { }; $result = $ua->post( - $conf{base_url}.'/ws.php?partner='.$conf{partner_key}.'&format=json', + $conf{base_url}.'/ws.php?format=json', $form ); @@ -65,7 +64,7 @@ if ($opt{action} eq 'pwg.images.add') { }; my $response = $ua->post( - $conf{base_url}.'/ws.php?partner='.$conf{partner_key}.'&format=json', + $conf{base_url}.'/ws.php?format=json', $form ); @@ -124,10 +123,6 @@ sub pwg_ws_get_query { my $query = $conf{base_url}.'/ws.php?format='.$conf{response_format}; - if (defined $conf{partner_key}) { - $query .= '&partner='.$conf{partner_key}; - } - foreach my $key (keys %params) { $query .= '&'.$key.'='.$params{$key}; } |