#!/bin/sh

TOKEN=${1:?
Usage:
    $0 <token>
Token might be obtained by https://direct-handles.qart.yandex-team.ru}


XML=$(curl --silent --insecure \
	--header "content-type: text/xml" \
	--header "Authorization: Bearer $TOKEN" \
	--header "Fake-Login: zhur-super" \
	--header "Client-Login: at-backend-retargeting3" \
	--header "SOAPAction: https://api.direct.yandex.com/v5/retargetinglists/get" \
        --header "X-Yandex-Trace: 42,142,143,12" \
	-d @get-request.xml \
	https://localhost:8443/v5/retargetinglists
)

echo $XML 

#| xmllint --format -
