use Farzai\KApi\ClientBuilder;
$client = ClientBuilder::make()
->setConsumer("<YOUR_CONSUMER_ID>", "<YOUR_CONSUMER_SECRET>")
->asSandbox()
->build();
use Farzai\KApi\ClientBuilder;
$builder = ClientBuilder::make();
// ตั้งค่า consumer id และ consumer secret
$builder->setConsumer("<YOUR_CONSUMER_ID>", "<YOUR_CONSUMER_SECRET>");
// ตั้งค่าเป็น sandbox
$builder->asSandbox();
// ตั้งค่าให้เป็น production
$builder->asProduction();
// ใช้งาน http client ที่ต้องการ
$builder->setClient(Psr\Http\Client\ClientInterface);
// เปลี่ยนวิธีการเก็บ token ด้วยตนเอง
$builder->setTokenRespository(Farzai\KApi\Contracts\AccessTokenRepositoryInterface);
// ตั้งค่า logger
$builder->setLogger(Psr\Log\LoggerInterface);
// สร้าง Client
$client = $builder->build();