2
$client     = new SoapClient('http://localhost/project/api/soap/?wsdl');

$user_name  = "username";
$password   = "password";

//$user_name  = $_POST["user_name"];
//$password   = $_POST["password"];

$response = array();
$session  = $client->login($user_name, $password);

//$result   = $client->call($session, 'catalog_category.tree');
$result = $client->call($session, 'catalog_category_attribute.list');

$response["Code"]     = "1";
$response["Message"]  = "suceess";
$response["categories"] = $result;

echo json_encode($response, true);
1

Use the API method catalog_category.info. Something like this added in your code should give you the needed information.

$categoryId = [YOUR CATEGORY_ID];
$result = $client->call($session, 'catalog_category.info', $categoryId);

$image = $result['image'];

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.