Hi folks,
As per the subject, I'm looking for some examples of curl script in order to access to the API of Dataminer. I didn't find them in the documentation.
Thanks in advance.
Jordane
An example running in windows PowerShell:
curl.exe --request POST 'http://localhost/API/v1/soap.asmx' --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction:http://www.skyline.be/api/v1/ConnectApp" --data '@new3.xml'
new3.xml is a file with the xml payload as below and response is in xml.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:v1="http://www.skyline.be/api/v1"><soap:Header/><soap:Body><v1:ConnectApp><v1:host>?</v1:host><v1:login>?</v1:login><v1:password>?</v1:password><v1:clientAppName>?</v1:clientAppName><v1:clientAppVersion>?</v1:clientAppVersion><v1:clientComputerName>?</v1:clientComputerName></v1:ConnectApp></soap:Body></soap:Envelope>
Thank you both of you for your example. I will test them ASAP.
Jordane