use soap api interface and the latest version
$api = ApiClient::factory(PROTOCOL_SOAP, VERSION_DEFAULT);
use xml api interface and the latest vesion
$api = ApiClient::factory(PROTOCOL_XML, VERSION_DEFAULT);
use json api interface and latest version
$api = ApiClient::factory(PROTOCOL_JSON);
---