header

Attribute List

Module: Mage_Catalog

Resource: catalog_category_attribute

Aliases:

Method:

Allows you to retrieve the list of category attributes.

Aliases:

Arguments:

Type Name Description
string sessionId Session ID

Returns:

Type Name Description
array result Array of catalogAttributeEntity

The catalogAttributeEntity content is as follows:

Type Name Description
int attribute_id
Attribute ID
string code
Attribute code
string
type
Attribute type
string
required
Defines whether the attribute is required
string
scope
Attribute scope: global, website, or store

Examples

Request Example SOAP V1
$client = new SoapClient('https://inovarti.com.br/index.php/api/soap/?wsdl');

// If somestuff requires API authentication,
// then get a session token
$session = $client->login('apiUser', 'apiKey');

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

// If you don't need the session anymore
//$client->endSession($session);
Request Example SOAP V2
$proxy = new SoapClient('https://inovarti.com.br/index.php/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy->login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary

$result = $proxy->catalogCategoryAttributeList($sessionId);
var_dump($result);
Request Example SOAP V2 (WS-I Compliance Mode)
$client = new SoapClient('https://inovarti.com.br/index.php/api/v2_soap/?wsdl');

$session = $client->login((object)array('username' => 'apiUser', 'apiKey' => 'apiKey'));

$result = $client->catalogCategoryAttributeList((object)array('sessionId' => $session->result));

var_dump ($result);
Response Example SOAP V1
array
  0 =>
    array
      'attribute_id' => null
      'code' => string 'parent_id' (length=9)
      'type' => null
      'required' => null
      'scope' => string 'global' (length=6)
  1 =>
    array
      'attribute_id' => null
      'code' => string 'increment_id' (length=12)
      'type' => null
      'required' => null
      'scope' => string 'global' (length=6)
  2 =>
    array
      'attribute_id' => null
      'code' => string 'updated_at' (length=10)
      'type' => null
      'required' => null
      'scope' => string 'global' (length=6)