• Announcements

    • Shane D.

      Evernote Business Beta - Spaces   12/20/2017

      We're very excited to announce the public beta of an upcoming rework for Evernote Business! To learn more, go Here
    • Shane D.

      2018 Evernote Webinars   01/04/2018

      To kick off the new year, we're excited to announce our  updated schedule for our series of webinars! Please check the events calendar to see which one works best for you!
  • 0
aksiksi

EverExport: a note export client for Scala and JavaScript

Idea

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

Share this post


Link to post

2 replies to this idea

Recommended Posts

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