Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Module: Mage_Catalog

Resource:catalog_product_attribute_media

Aliases:

  • product_attribute_media
  • product_media

Method:

  • catalog_product_attribute_media.currentStore (SOAP V1)
  • catalogProductAttributeMediaCurrentStore (SOAP V2)

Allows you to set/get the current store view.

Aliases:

  • product_attribute_media.currentStore
  • product_media.currentStore

Arguments:

TypeNameDescription
stringsessionIdSession ID
stringstoreViewStore view ID or code (optional)

Returns:

TypeNameDescription
intstoreViewStore view ID

Examples

Request Example SOAP V1
$client = new SoapClient('http://magentohost/api/soap/?wsdl');

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

$result = $client->call($session, 'catalog_product_attribute_media.currentStore', 'english');
var_dump ($result);
Request Example SOAP V2
$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy->login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary
 
$result = $proxy->catalogProductAttributeMediaCurrentStore($sessionId, 'english');
var_dump($result);

Create the Magento file system owner