olsgreen / ivendi-quoteware-api
iVendi Quoteware API 客户端
1.0.2
2022-05-08 11:36 UTC
Requires
- olsgreen/abstract-api: ^1.2
This package is auto-updated.
Last update: 2024-09-08 17:06:10 UTC
README
本软件包提供了一种在 PHP 中轻松与 iVendi Quoteware API 交互的方法。
在开始之前,请访问 iVendi 的文档网站: https://documentation.ivendi.com/docs/。
安装
使用 composer 将客户端添加到您的项目中。
composer require olsgreen/ivendi-quoteware-api
示例
执行基本报价请求
$ivendi = new \Olsgreen\IVendi\Quoteware\Client([ 'username' => 'www.ivendimotors.com', 'quotee_uid' => '268E8202-338E-4B26-A6FE-74BCDAB0A357', ]); $response = $ivendi->quoteware()->request([ 'cashPrice' => 20000, 'cashDeposit' => 2000, 'annualDistance' => 10000, 'term' => 48, 'currentOdometerReading' => 12345, 'identity' => 'FV10 XYB', 'creditTier' => CreditTiers::EXCELLENT, 'entityType' => EntityTypes::PERSONAL, ]); // { // "hasQuoteResults": true, // "QuotedResultsUID": "aeec6f6f-6d1c-4f1c-8380-e50e0b3554eb", // "QuoteResults": [ // ... // ] // @see https://documentation.ivendi.com/docs/ExampleQuotewareResponse // }
许可证
请参阅附带的许可证文件
贡献
欢迎拉取请求 🌟