1.1.2 • Published 6 months ago
instagram-notes v1.1.2
instagram-notes
installation
npm i instagram-notes
importing the package
const Note = require("instagram-notes");
import Note from "instagram-notes";
creating a sessionId
const sessionId = await Note.getSessionId("username", "password");
creating a client/instance
const client = new Note(sessionId);
get all notes
await client.getNotes();
create a note
await client.createNote("hello");
delete a note
await client.deleteNote("<note-id>"); // id of *your* note from client.getNotes()
update last seen time
await client.lastSeenUpdateNote();