updateQuickMessage
Cập nhật thông tin trang cá nhân, doanh nghiệp
api.updateQuickMessage(updatePayload, itemId)
Parameters
updatePayload
UpdateQuickMessagePayload
itemId
number
Return
Promise<UpdateQuickMessageResponse>
Types
export type UpdateQuickMessagePayload = {
keyword: string;
title: string;
media?: AttachmentSource;
};
export type UpdateQuickMessageResponse = {
item: QuickMessage;
version: number;
};
Examples
import { Gender, BusinessCategory } from "zca-js";
const itemId = 1;
api
.updateQuickMessage(
{
keyword: "hi",
title: "Xin chào",
media: ["./hello.jpg"]
},
itemId
)
.then(console.log)
.catch(console.error);
Related
Last updated