generated from tailored/router-db-template
temp
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user