Receiving requests


NOTE: The way Fleeting Notes sends requests is subject to change. This document will be updated accordingly.

The Request object is an object from the Deno fetch library. When a slash command is called from a note, the noteAdd your first pluginNOTE: this object is subject to change The note object is a JSON object that contains 3 parameters: title, content, source. It might look like: { "title": "title of the note", "content": "content within the note", "source": "a source", } and some metadata will be sent to your function. In order to access this data, you'll need to convert the body into a JSON object. See how to do so below:

var json = await request.json();
var metadata = json['metadata'];
var note = json['note'];