Shop

Source

The shop resource doesn't do too much. It essentially allows an API caller to retrieve details about the shop that provided the credentials utilised to make the API call.

Get the configuration of a single shop account

Source

Retrieve general and configuration details regarding the shop account associated with the credentials used.

The response is a Yaspa\AdminApi\Shop\Models\Shop model.

use Yaspa\AdminApi\Shop\ShopService;
use Yaspa\Authentication\Factory\ApiCredentials;
use Yaspa\Factory;

// Prepare request
$credentials = Factory::make(ApiCredentials::class)
    ->makeOAuth('johns-apparel', 'a190000000000000000000000000046a');

// Get shop details
$service = Factory::make(ShopService::class);
$shop = $service->getShop($credentials);

results matching ""

    No results matching ""