inteleon / decidas-client
Decidas 客户端
v1.0.2
2019-03-25 15:13 UTC
Requires
- php: >=5.3.0
- ext-curl: *
- ext-soap: *
- inteleon/soap-client: ~1.0
Requires (Dev)
- phpunit/phpunit: ~4.0||~5.0
- squizlabs/php_codesniffer: ~2.3
This package is not auto-updated.
Last update: 2024-09-17 19:24:27 UTC
README
用于向 Decidas Web 服务发送请求。此包目前仅用于通过个人编号查找个人数据。您需要 Decidas 账户以及配置此产品(ConfigID)。
您应该阅读 Web 服务的说明书,以便对它的工作方式有一个基本的了解。
通过个人编号获取个人数据
获取瑞典个人编号对应的个人数据。
//Create client $username = ''; //Decidas username $password = ''; //Decidas password $connect_timeout = 5000; //Connect timeout in ms $timeout = 5000; //Timeout in ms $connect_attempts = 1; //Reconnect attempts if connection is failed $verify_certificate = true; //Verify the SSL certificate $cache_wsdl = true; //Cache the WSDL file $decidas = new \Inteleon\Decidas\Client($username, $password, $connect_timeout, $timeout, $connect_attempts, $verify_certificate, $cache_wsdl); //Person search $confignr = ''; //Decidas Config number/id $personnr = ''; //Personnummer $person = $decidas->personSearch($personnr, $confignr);
如果找到人员,$person
是一个数组,包含以下键:[PersonNr, LastName, FirstName, GivenName, AddressCo, AddressFo, AddressStreet, AddressZip, AddressCity]
如果没有找到人员,$person
是 false