joined:May 7, 2005
I'm trying to do something that shouldn't be too hard but I'm struggling with it.
I need to send a request to an API and get the response. I've been on with this all weekend so any help is greatly appreciated.
This is the code I'm trying.
$password = 'passwordhere';
$productCode = 'ITEMCODEHERE';
$userName = 'USERNAMEHERE';
$xmlParameters = "password=$password&productCode=productCode";
$client = new SoapClient('https://api.domain.com/');
$res = $client->GetImagesforProduct($userName,$xmlParameters);
$contentString = $res->contentString;