This commit is contained in:
2025-05-05 22:41:18 +08:00
parent a412c09da0
commit 8891b196ba
12 changed files with 249 additions and 41 deletions

View File

@@ -1,5 +1,5 @@
import { xhsServices, program } from '../common.ts';
import util from 'node:util';
// client.getNoteComments()
@@ -8,7 +8,7 @@ import { xhsServices, program } from '../common.ts';
// });
const getNoteById = async () => {
const client = xhsServices.getClient();
client.getNoteById('67dcc34e000000000602a8eb', 'ABuYS8Xb1o08DlRmMLIabdqnW0OKnLR9nMpDGq5bVRdvk').then((res) => {
client.getNoteById('68136dab0000000007034c46', 'LByEmonX8WfJ9ebpAowVbOZX9Xh8T0Qkjil5KRFqDD6LM').then((res) => {
console.log(res);
});
};
@@ -16,8 +16,8 @@ const getNote = async () => {
const id = '68136dab0000000007034c46';
const x = 'LByEmonX8WfJ9ebpAowVbOZX9Xh8T0Qkjil5KRFqDD6LM=';
const client = xhsServices.getClient();
client.getNoteByIdFromHtml(id, x).then((res) => {
console.log(res);
client.getNote(id, x).then((res) => {
console.log(util.inspect(res, { depth: null }));
});
};
program
@@ -32,4 +32,4 @@ program
.description('get note by id')
.action(async () => {
getNoteById();
});
});