mghddev/dayapi

Day保险的库

1.0.2 2019-12-02 06:57 UTC

This package is not auto-updated.

Last update: 2024-10-01 06:51:59 UTC


README

Day保险PHP API客户端

这个库有一个对象,用于向Day API发送SOAP请求。这是DaySoapClient类,需要注入wsdl url、用户名和密码来构建其对象。以下是如何使用此库的示例:

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

require __DIR__.'/vendor/autoload.php';

$wsdl = "Wsdl_url";
$UserName = 'UserName';
$password = '*****';

$day_client = new \DayApi\DaySoapClient($wsdl, $UserName, $password);

####1) Method getPrice:

$get_price_object = new \DayApi\GetPriceDataObject();
$get_price_object->setAge(25);
$get_price_object->setDuration(10);
$get_price_object->setZoneId(107);

$prices = $day_client->getPrice($get_price_object);

####2) Method Issue: