Getting Started
First Request
Thực hiện API call đầu tiên với DevKit.
Your First API Call
Sau khi setup client, hãy gọi API đầu tiên.
Create a User
ts
const user = await devkit.users.create({
email: 'alice@example.com',
name: 'Alice',
});Handle Errors
ts
try {
const user = await devkit.users.create(data);
} catch (err) {
if (err.code === 'validation_error') {
console.error(err.issues);
}
}Success
Bạn đã sẵn sàng! Tiếp theo, xem các Guides để học advanced patterns.