Country Api

Last modified by Michael on Fri, July 4, 2008 12:21
Source|Old Revisions  

Allows to export countries list from Magento

Module: Mage_Directory

Resource: directory_country

Aliases:

  • country

Methods

directory_country.list

Retrieve list of countries.

Return: array.

Aliases:

  • country.list

Examples

Example 1. Retrieve list of countries

  1. $proxy = new SoapClient('http://magentohost/api/soap/?wsdl');
  2. $sessionId = $proxy->login('apiUser', 'apiKey');
  3. $countries = $proxy->call($sessionId, 'country.list');
  4. var_dump($countries); // Coutries list.



 

Magento 2 GitHub Repository

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs