WARNING: This server provides a static reference view of the NetKernel documentation. Links to dynamic content do not work. For the best experience we recommend you install NetKernel and view the documentation in the live system .

Endpoint
Name:mod-evernote.Template
Description:
Id:mod-evernote.Template
Category:accessor
Identifier Syntax

mod-evernote.Template is an accessor using Active URI syntax with the following base identifiers:

Base
active:evernote/Template

and the following arguments: (for more details on argument passing details see here)

ArgumentRulesTypingDescription
notebook
Optional
Representation (java.lang.Object)The name of the notebook to reference by hash in the template
config
Optional
Representation (java.lang.Object)The OAuth configuration
Request Verbs

The following verb is supported:

Verb
SOURCE
Response

The response representation of this accessor for SOURCE requests is unknown.

This accessor throws no documented exceptions.

Import Requirements

To use mod-evernote.Template accessor you must import the module urn:org:netkernel:mod:evernote:

<import>
  <uri>urn:org:netkernel:mod:evernote</uri>
</import>

Provides an HDS template containing the correct hash for the specified notebook argument

The response has the following HDS structure

HDSMutatorImpl m=new HDSMutatorImpl();
        m.pushNode("note");
        m.addNode("title", null);
        m.addNode("notebookHash", notebook.getGuid());
        m.addNode("content", null);
        aContext.createResponseFrom(m.toDocument(false));

You must then mutate this HDS and fill out the title and content (and add any other optional values or attachement resources) before using it as the primary argument in a NEW or SINK request to active:evernote/Note