pathristikon / dsuniq-sdk
DsUniq SDK
dev-master
2020-04-19 10:51 UTC
Requires
- ext-curl: *
- ext-json: *
This package is auto-updated.
Last update: 2024-09-19 21:14:04 UTC
README
Installation
composer require pathristikon/dsuniq-sdk
Usage
- initialize an object
Dsuniq\DsuniqSdk\Config
with parameter string apiToken - initialize an object
Dsuniq\DsuniqSdk\ApiHandler
which will handle all your requests - use
apihandler->getProducts()
to fetch the first page of your products - if you already fetched the products, use
apihandler->getTotalPages
to get all the pages you can iterate - if you have more than one page, use
apihandler->getProducts(2)
to get the page number 2 - if you want to see the mapped categories, use
apihandler->getCategories()
Disclaimer
For internal use only!