| 1 | <?php |
||
| 11 | class Inktale |
||
| 12 | { |
||
| 13 | /** @var InktaleApiClient */ |
||
| 14 | private $api; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param InktaleApiClient|null $apiClient |
||
| 18 | */ |
||
| 19 | public function __construct(InktaleApiClient $apiClient = null) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Set api key to be used for next requests |
||
| 26 | * |
||
| 27 | * @param string|null $apiKey |
||
| 28 | */ |
||
| 29 | public function setApiKey($apiKey) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Create a new store and retrieve the api key. This request does not require an api key to be set |
||
| 36 | * |
||
| 37 | * @param string $email |
||
| 38 | * @param string $name |
||
| 39 | * |
||
| 40 | * @return StoreItem |
||
| 41 | * @throws InktaleApiException |
||
| 42 | */ |
||
| 43 | public function createStore($email, $name) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Fetch list of available products that artwork can be created on |
||
| 55 | * |
||
| 56 | * @return ProductItem[] |
||
| 57 | * @throws InktaleApiException |
||
| 58 | */ |
||
| 59 | public function getProducts() |
||
| 70 | } |