@@ -31,10 +31,10 @@ composer require merch-one/php-api-sdk
3131
3232### Basic Usage
3333
34- ** Create an instance of ` MerchOne\PhpSdk \Http\Client ` **
34+ ** Create an instance of ` MerchOne\PhpApiSdk \Http\Client ` **
3535
3636``` php
37- use MerchOne\PhpSdk \Http\Client;
37+ use MerchOne\PhpApiSdk \Http\Client;
3838
3939class MyService
4040 {
@@ -59,15 +59,15 @@ class MyService
5959 );
6060
6161 /* Interact with Catalog API */
62- /** @var \MerchOne\PhpSdk \Contracts\Clients\CatalogApi $catalogApi */
62+ /** @var \MerchOne\PhpApiSdk \Contracts\Clients\CatalogApi $catalogApi */
6363 $catalogApi = $this->httpClient->catalog();
6464
6565 /* Interact with Orders API */
66- /** @var \MerchOne\PhpSdk \Contracts\Clients\OrdersApi $ordersApi */
66+ /** @var \MerchOne\PhpApiSdk \Contracts\Clients\OrdersApi $ordersApi */
6767 $ordersApi = $this->httpClient->orders();
6868
6969 /* Interact with Shipping API */
70- /** @var \MerchOne\PhpSdk \Contracts\Clients\ShippingApi $shippingApi */
70+ /** @var \MerchOne\PhpApiSdk \Contracts\Clients\ShippingApi $shippingApi */
7171 $shippingApi = $this->httpClient->shipping();
7272
7373 // switch API version you interact with
@@ -78,13 +78,20 @@ class MyService
7878 }
7979}
8080```
81+ - The ` Client ` class accepts two parameters:
82+ - ` $version ` - API version to interact with. Default value is ` beta ` .
83+ - See [ Helpers] ( #helpers ) for available versions.
84+ - ` $clientOptions ` - Custom options to use with request.
85+ - See [ Guzzle Documentation] ( https://docs.guzzlephp.org/en/stable/request-options.html ) for available options.
86+ - The ` User-Agent ` , ` Accept ` and ` Content-Type ` headers, as well as ` http_error ` properties ** CAN NOT** be overwritten !
87+
8188
8289---
8390
8491### Helpers
8592
8693``` php
87- use MerchOne\PhpSdk \Util\MerchOneApi;
94+ use MerchOne\PhpApiSdk \Util\MerchOneApi;
8895
8996// get the list of all available API versions
9097MerchOneApi::getVersions();
0 commit comments