Jump to content

EverExport: a note export client for Scala and JavaScript


aksiksi

Recommended Posts

Hello all!

I recently released EverExport, an open-source note export client written in Scala. The goal is to simplify working with the Evernote SDK and abstract away some of the more... confusing API methods.

The client is cross-compiled to JavaScript using  Scala.js, so you can also use the client from JavaScript! You can install it through NPM:

npm install everexport

Here is a JS example that shows how to list all notebooks in a user's account and then list all notes in the first notebook:

const everexport = require('everexport')

const token = "YOUR_EVERNOTE_TOKEN"
const exporter = new everexport.EverExport(token, true) // Second parameter is sandbox = [true/false]

// Fetch all notebooks in user's account
exporter.listNotebooks()
// Then fetch all notes in *first* notebook
.then(notebooks => {
    const n = notebooks[0]
    return exporter.exportNotebook(n.guid)
})
// Then display each note's title and creation time
.then(notes => {
    notes.forEach(note => {
        console.log('Title: ' + note.title + ', Created on: ' + note.created)
    });
})

Let me know if you have any questions and/or suggestions!

Link to comment
  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...