Jump to content

EverExport: a note export client for Scala and JavaScript


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!

  • Like 1
Link to comment
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...