Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $resource3 = new DreamCommerce\ShopAppstoreLib\Resource\ProductStock($client);
- $result3 = $resource3->get(5167);
- print_r($result3);
- try{
- $resource = new DreamCommerce\ShopAppstoreLib\Resource\OptionValue($client);
- $result = $resource->get();
- foreach($result as $r) {
- printf("#%d (option: %d) - products num: %d\n", $r->ovalue_id, $r->option_id, $r->total_products);
- }
- } catch(DreamCommerce\ShopAppstoreLib\Exception\Exception $ex) {
- die($ex->getMessage());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement