PHP code example of hauser / discountset
1. Go to this page and download the library: Download hauser/discountset library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hauser / discountset example snippets
use Hauser\DiscountSet\Factory;
use Hauser\DiscountSet\taobao\request\TbkItemInfoGetRequest;
$client = Factory::taobao ();
$req = new TbkItemInfoGetRequest();
$req->setNumIids ($numIids);
return $client->execute ($req);
use Hauser\DiscountSet\Factory;
use Hauser\DiscountSet\jingdong\request\JdUnionGoodsPromotiongoodsinfoQueryRequest;
$jd = Factory::jingdong();
$req = new JdUnionGoodsPromotiongoodsinfoQueryRequest();
$req->setSkuIds("$itemid");
return $jd->execute($req);
bash
php artisan vendor:publish --provider "Hauser\DiscountSet\ServiceProvider"