Méthode | Description | |
---|---|---|
factory ( string $protocol = PROTOCOL_DEFAULT, string $version = VERSION_DEFAULT ) : mixed | Factory function returns a static instance of the ApiClient. |
Méthode | Description | |
---|---|---|
__construct ( ) : void | Make the constructor private to prevent the class being instantiated directly. | |
getInterface ( string $version, string $protocol ) : mixed | Automatically includes the required ApiClient protocol class. |
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);
---