XMl-RPC API cust.customer.verification
Struktura XML-RPC dotazu
<?xml version="1.0"?> <methodCall> <methodName>cust.customer.verification</methodName> <params> <param><value><string>client_md5_hash_here</string></value></param> <param><value><string>username_base64_value</string></value></param> <param><value><string>password_md5_hash</string></value></param> </params> </methodCall>
nebo
<?xml version="1.0"?> <methodCall> <methodName>cust.customer.verification</methodName> <params> <param><value><string>client_md5_hash_here</string></value></param> <param><value><string>username_base64_value</string></value></param> </params> </methodCall>
Hodnoty odpovědi
%hash =
{
'EMAIL' => 'email'
'ID_CUSTOMER' => ID_customer
'ID_USER' => ID_user
'USERNAME' => 'username'
'COMPANY' => MIME::Base64::encode('company'),
'CONTACT_PERSON' => MIME::Base64::encode('contact_person'),
'ADDRESS' => MIME::Base64::encode('address'),
'ZIP' => MIME::Base64::encode('zip'),
'CITY' => MIME::Base64::encode('city'),
'COUNTRY' => MIME::Base64::encode('country'),
'ACCOUNT' => MIME::Base64::encode('account'),
'BANK_CODE' => MIME::Base64::encode('bank_code'),
'CURRENCY' => MIME::Base64::encode('currency'),
'CONTACT_CELL' => MIME::Base64::encode('contact_cell'),
'CONTACT_PHONE' => MIME::Base64::encode('contact_phone')
'INVOICE_MAIL' => MIME::Base64::encode('invoice_mail')
}Pokud autentifikace neproběhla úspěšně, nebude v odpovědi ID_customer a ID_user mít žádnou hodnotu.