Attachment POST not working ERROR_AUTHENTICATION_REQUIRED - Invalid signature for signature method HMAC-SHA1

146 views
Skip to first unread message

Aman Bansal

unread,
Sep 14, 2019, 3:11:32 AM9/14/19
to immobilienscout24-development
Hello,

I am trying to create an attachment as per the documentation https://api.immobilienscout24.de/our-apis/import-export/attachments/post.html and getting the error 
ERROR_AUTHENTICATION_REQUIRED - Invalid signature for signature method HMAC-SHA1 but when i POST all other request like contact, realestate they are working fine so why i am getting this error only for attachment post.

SIGNED URL

REQUEST HEADER
$sMimeBoundary = md5(time());
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Content-Type'=>'multipart/form-data; boundary="'.$sMimeBoundary.'"',
    'Accept-Encoding' => 'gzip,deflate',
));

REQUEST BODY

--f8e5a8edc4b990a9e9bf13e02eaea616
Content-Type: application/xml; name=body.xml
Content-Transfer-Encoding: binary
Content-Disposition: form-data; name="metadata"; filename="body.xml"

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<title></title>
<externalId>extID6</externalId>
<externalCheckSum></externalCheckSum>
<floorplan></floorplan>
<titlePicture></titlePicture>
</common:attachment>
--f8e5a8edc4b990a9e9bf13e02eaea616
Content-Type: image/jpeg; name=test.jpeg
Content-Transfer-Encoding: binary
Content-Disposition: form-data; name="attachment"; filename="test.jpeg"
 ���6wK���7zko�u,6 �� _�m�a�3Ǩ͖z�X�1�Ӓ�l�߀^jah��C�B����oݱesy �*B#�� ��� c��A&�����ߡ ���!���� Z}�4���w�6�*�����0A3ặ��� ����"�lp�K � ��>���Z��~b�u 5ı�1��pi� �[���Ur�Y� ;i�b w��ׯnn�\ -nƊX �`{mu�s~��}�W��<2�bU�Z6�cv�;�ml���{�gM��}�e��e�P�]c ���۽� �
c�]5� {���� ��kwӶ���� \� � �������� ................................
--f8e5a8edc4b990a9e9bf13e02eaea616--



Olaf Lindenau

unread,
Sep 16, 2019, 4:07:42 AM9/16/19
to immobilienscout24-development
Hi Aman,

I've got your mail you has sent to us and will answer it.

Best,
Olaf
Reply all
Reply to author
Forward
0 new messages