$parameters = array( [ 'swpbLogin' ] = '' ; // SWPB login [ 'swpbPassword' ] = '' ; // SWPB password )
array ( [ 'status' ] = 'OK' [ 'user' ] = array ( user and company data ) ) or array ( [ 'status' ] = 'FAIL' )
require_once ( 'classUddsOx.php' ) ; $udds = new classUddsOx ; $udds->customerCode = $srvCustomerCode ; $udds->login = $srvlogin ; $udds->password = $srvPassword ; $udds->serverUrl = $srvUrl ; $myParams = array() ; $myParams [ 'swpbLogin' ] = 'demo' ; $myParams [ 'swpbPassword' ] = '1111111111' ; $ret = $udds->swpbAuthCheck ( $myParams ) ;
Returns $ret =
Array ( [status] => OK [user] => Array ( [person] => Array ( [id] => 21 [prefix] => Pani [name] => Użytkownik [surName] => Demo [address] => Array ( [id] => 27 [addressPrefix] => [address] => Uliczna 1 [city] => Miejscowo [postCode] => 00-000 [region] => śląskie [country] => Polska ) [birthDate] => 1900-01-01 [phoneNumber1] => [phoneNumber2] => [phoneNumber3] => [email] => [idNumber] => [passportNumber] => [peselNumber] => [bankName] => [bankAccountNo] => ) [company] => Array ( [id] => 21 [name] => Biuro Podróży ARKA [shortName] => ARKA [address] => Array ( [id] => 215 [addressPrefix] => ul. [address] => [city] => [postCode] => [region] => [country] => ) [regon] => [nip] => 8212655744 [accountNo] => [swiftNo] => [bankName] => [ibanNo] => [www] => [email] => [phoneNumber1] => [phoneNumber2] => [phoneNumber3] => [additionalField1] => [additionalField2] => 2020-02-26 ) ) )