unfollowOA
import { unfollowOA } from "zmp-sdk/apis"; // >= 2.5.3
API cho phép ứng dụng hiển thị giao diện yêu cầu bỏ theo dõi Official Account để người dùng xác nhận.
Ví dụ
Hiển thị giao diện yêu cầu bỏ theo dõi Official Account:
await unfollowOA({
id: "xxxx",
});
Tham số
Truyền tham số vào API dưới dạng object chứa các thuộc tính:
Name | Type | Default | Description |
---|---|---|---|
id | string | Id của Official Account. |
Errors
Code | Message | Note |
---|---|---|
-201 | User deny process action! | Người dùng từ chối |