From: Jan Büren Date: Fri, 19 Nov 2021 10:02:22 +0000 (+0100) Subject: Toten Code entfernt X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~218^2~27 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=fba387a443dc89647cdbdce7d7c11f42c7b62f23;p=kivitendo-erp.git Toten Code entfernt --- diff --git a/SL/ShopConnector/Shopware6.pm b/SL/ShopConnector/Shopware6.pm index b480144c3..e065176e8 100644 --- a/SL/ShopConnector/Shopware6.pm +++ b/SL/ShopConnector/Shopware6.pm @@ -661,30 +661,6 @@ sub init_connector { $client->addHeader('Authorization' => 'Bearer ' . $token); return $client; } -# ua multiple form-data -sub init_ua { - my ($self) = @_; - - my $section = 'bekuplast_elo'; - my $config = $::lx_office_conf{$section} || {}; - my $client; - # mandatory config parameters - foreach (qw(user pass apikey)) { - die "parameter '$_' in section '$section' must be set in config file" if !defined $config->{$_}; - } - $client = REST::Client->new(host => $self->host); - # no test case available in ELO API - # and set ua we need this, because ELO wants multippart/form-data - my $ua = $self->client->getUseragent(); - - $ua->default_header(Authorization => 'Basic ' . encode_base64($config->{user} . ':' . $config->{pass}), - apikey => $config->{apikey}, - 'Content-Type' => 'multipart/form-data', - ); - - return $ua; -} - sub import_data_to_shop_order { my ($self, $import) = @_;