From 5be9f56c12ff88e2ee7519d3881bdd06fc7dd84d Mon Sep 17 00:00:00 2001 From: Ian Cooperman Date: Thu, 4 Aug 2022 19:37:38 -0700 Subject: [PATCH] Cleaned up joplin.js. Ready for merge into main. --- joplin.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/joplin.js b/joplin.js index cfc524a..a231db9 100644 --- a/joplin.js +++ b/joplin.js @@ -1,7 +1,7 @@ import fetch from 'node-fetch' import 'dotenv/config' - +// This class is used to interact with the Joplin Data API. It provides a method for getting notes from a specified notebook, using the notebook's ID. The fields parameter specifies which fields to include in the response. class Joplin { constructor(joplinToken, joplinPort) { this.token = joplinToken @@ -40,7 +40,4 @@ class Joplin { } } - -let joplin = new Joplin(process.env.JOPLIN_TOKEN, process.env.JOPLIN_CLIPPER_PORT) -joplin.getNotesFromNotebook(process.env.JOPLIN_NOTEBOOK_ID, ["id", "title", "body", "created_time", "latitude", "longitude", "altitude", "is_todo", "todo_due", "todo_completed"]) - .then(res => console.log(res)) \ No newline at end of file +export default Joplin