minchao / shopee-php

Shopee OpenAPI 1.0 Client for PHP
BSD 3-Clause "New" or "Revised" License
142 stars 84 forks source link

Where do i put an instance of the Shopee client? #21

Closed QgAnhDo closed 4 years ago

QgAnhDo commented 4 years ago

I a newbie, i try to run the code but it didn't work. I don't know where I was wrong. Maybe can you give me more details tutorial please? ty

fdciabdul commented 4 years ago

require_once __DIR__ . '/vendor/autoload.php';

$client = new \Shopee\Client([
    'secret' => SHOPEE_SECRET,
    'partner_id' => SHOPEE_PARTNER_ID,
    'shopid' => SHOPEE_SHOP_ID,
]);