We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f31f3f commit 12f6126Copy full SHA for 12f6126
1 file changed
nodejs/src/index.ts
@@ -156,6 +156,25 @@ class API {
156
throw new Error('Create note failed')
157
}
158
159
+
160
+ async listNotes () {
161
+ // https://hackmd.io/api/overview?v=1627369059523
162
+ if (this.enterprise) {
163
+ const response = await this.fetch(url.resolve(this.serverUrl, 'api/overview'), this.defaultFetchOptions)
164
165
+ return response.json()
166
+ } else {
167
+ throw new Error('Not support')
168
+ }
169
170
171
+ async listTeamNotes (teamPath: string) {
172
173
+ return this.fetch(url.resolve(this.serverUrl, `api/overview/team/${teamPath}`), this.defaultFetchOptions).then(res => res.json())
174
175
176
177
178
179
private async exportRes(noteId: string, type: ExportType) {
180
let res: Response
0 commit comments