iyuichiの私的開発ログ

渋谷で働くWebエンジニアのログ. Java, Android, iOS, Docker, GCP, AWS, ゲーム開発

Evernote のAPIを使ってみる(導入編)

Evernoteはウェブクリップやメモなど普段よく利用しているので、
自分用に使いやすいツールなんか作れたらよいなと思いEvernoteのAPIを勉強してみることにする。

まずAPIを利用するには、こちらからRequest an API KeyのフォームでKeyを発行してもらう必要がある。

発行には1〜2日くらいかかったような。
メールで、consumer key、consumer secret が送付されてきます。

この時点では、sandbox環境でのみ使えるものになるようです。
http://sandbox.evernote.com/

We can activate it on the production system once you let us know that you're ready to go live.

ということなので、いろいろ試してみたら連絡することにする。

ではサンプルを動かしてみる。
「Evernote API (ZIP)」をダウンロードするとAPIを利用するためのライブラリ、サンプルソースが入っている。

参考までにREADMEを貼っておこう。


Evernote Data Access and Management (EDAM) API

The EDAM API is distributed under terms described in the LICENSE.txt file.

=========
Contents:
=========

doc/

  html/
    Contains HTML reference documentation for generated API calls and data
    structures.  This is a representation of the language-independent Thrift
    values, so it is not specific to a single client language. 

  javadoc/
    Contains HTML documentation for the generated API calls for Java.
    
src/

  thrift/
    Contains the source IDL files, along with inline documentation for all
    structures and services.
    
  java/
    Java source files, generated from the Thrift IDLs

  cpp/
    C++ source files, generated from the Thrift IDLs

  cocoa/
    Mac Cocoa source files, generated from the Thrift IDLs    

  csharp/
    C# source files, generated from the Thrift IDLs

  javame/
    Java Micro Edition (CLDC 1.1) source files for runtime and generated
    classes.

lib/

  java/
    JAR files for the EDAM API and the Thrift runtime library
    
  perl/
    Generated Perl stubs for EDAM and Thrift Perl runtime classes
    
  php/
    Generated PHP stubs and the Thrift PHP runtime classes

  python/
    Generated Python stubs and the Thrift Python runtime classes

  ruby/
    Generated Ruby stubs and the Thrift Ruby runtime classes

sample/

  java/
    Java example client code
    
  php/
    PHP example client code

  python/
    Python example client code

  csharp/
    C# example client code

  ruby/
    Ruby example client code

  javame/
    Skeleton Java ME sample code

http://sandbox.evernote.com/ で会員登録して、
とりあえず、EDAMDemoをeclipseで実行したら、ノートの取得と登録ができたもよう。

ということで一旦ここまで。