DHL-PHP-SDK
v0.4
A wrapper for the DHL-XML-API Version 2
|
Public Member Functions | |
__construct ($testMode=false) | |
__destruct () | |
getUser () | |
setUser ($user) | |
getSignature () | |
setSignature ($signature) | |
getEkp ($len=null) | |
getEpk ($len=null) | |
setEkp ($ekp) | |
setEpk ($ekp) | |
getApiUser () | |
setApiUser ($apiUser) | |
getApiPassword () | |
getApiKey () | |
setApiPassword ($apiPassword) | |
setApiKey ($apiKey) | |
Data Fields | |
const | TEST_NORMAL = 'test' |
const | TEST_THERMO_PRINTER = 'thermo' |
const | DHL_BUSINESS_TEST_USER = '2222222222_01' |
const | DHL_BUSINESS_TEST_USER_THERMO = '2222222222_03' |
const | DHL_BUSINESS_TEST_USER_PASSWORD = 'pass' |
const | DHL_BUSINESS_TEST_EPK = '2222222222' |
const | DHL_BUSINESS_TEST_EKP = '2222222222' |
Definition at line 21 of file Credentials.php.
__construct | ( | $testMode = false | ) |
Credentials constructor.
If Test-Modus is true it will set Test-User, Test-Signature, Test-EKP for you!
bool | string | $testMode | - Use a specific Test-Mode or Live Mode Test-Mode (Normal): Credentials::TEST_NORMAL, 'test', true Test-Mode (Thermo-Printer): Credentials::TEST_THERMO_PRINTER, 'thermo' Live (No-Test-Mode): false - default |
Definition at line 129 of file Credentials.php.
__destruct | ( | ) |
Clears Memory
Definition at line 149 of file Credentials.php.
getApiKey | ( | ) |
Alias for $this->getApiPassword
Definition at line 271 of file Credentials.php.
getApiPassword | ( | ) |
Get the API-Password/Key
Definition at line 262 of file Credentials.php.
getApiUser | ( | ) |
getEkp | ( | $len = null | ) |
Get the (x first Digits of the) EKP
null | int | $len | - Max-Chars to get from this String or null for all |
Definition at line 199 of file Credentials.php.
getEpk | ( | $len = null | ) |
Alias for $this->getEkp
null | int | $len | - Max-Chars to get from this String or null for all |
Definition at line 211 of file Credentials.php.
getSignature | ( | ) |
Get the DHL-Intraship Password
Definition at line 180 of file Credentials.php.
getUser | ( | ) |
Get the DHL-Intraship Username
Definition at line 162 of file Credentials.php.
setApiKey | ( | $apiKey | ) |
Alias for $this->setApiPassword
string | $apiKey | - API-Password/Key |
Definition at line 289 of file Credentials.php.
setApiPassword | ( | $apiPassword | ) |
Set the API-Password/Key
string | $apiPassword | - API-Password/Key |
Definition at line 280 of file Credentials.php.
setApiUser | ( | $apiUser | ) |
Set the API-User
string | $apiUser | - API-User |
Definition at line 253 of file Credentials.php.
setEkp | ( | $ekp | ) |
Set the EKP-Number
string | $ekp | - EKP-Number |
Definition at line 222 of file Credentials.php.
setEpk | ( | $ekp | ) |
Alias for $this->setEkp
string | $ekp | - EKP-Number |
Definition at line 233 of file Credentials.php.
setSignature | ( | $signature | ) |
Set the DHL-Intraship Password
string | $signature | - DHL-Intraship Password |
Definition at line 189 of file Credentials.php.
setUser | ( | $user | ) |
Sets the DHL-Intraship Username in lower case
string | $user | - DHL-Intraship Username |
Definition at line 171 of file Credentials.php.
const DHL_BUSINESS_TEST_EKP = '2222222222' |
DHL Business-API Test-EKP
Definition at line 59 of file Credentials.php.
const DHL_BUSINESS_TEST_EPK = '2222222222' |
DHL Business-API Test-EKP
Definition at line 54 of file Credentials.php.
const DHL_BUSINESS_TEST_USER = '2222222222_01' |
DHL Business-API Test-User (Normal)
Definition at line 37 of file Credentials.php.
const DHL_BUSINESS_TEST_USER_PASSWORD = 'pass' |
DHL Business-API Test-User-Password
Definition at line 47 of file Credentials.php.
const DHL_BUSINESS_TEST_USER_THERMO = '2222222222_03' |
DHL Business-API Test-User (Thermo)
Definition at line 42 of file Credentials.php.
const TEST_NORMAL = 'test' |
DHL-Test-Mode (Normal)
Definition at line 26 of file Credentials.php.
const TEST_THERMO_PRINTER = 'thermo' |
DHL-Test-Mode (Thermo-Printer)
Definition at line 31 of file Credentials.php.