From fba387a443dc89647cdbdce7d7c11f42c7b62f23 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Fri, 19 Nov 2021 11:02:22 +0100 Subject: [PATCH] Toten Code entfernt --- SL/ShopConnector/Shopware6.pm | 24 ------------------------ 1 file changed, 24 deletions(-) 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) = @_; -- 2.20.1