DevFest Keynote - Android Apps with Evernote API

Post on 10-May-2015

1.325 views 1 download

description

Keynote presentation

Transcript of DevFest Keynote - Android Apps with Evernote API

INTEGRATE YOUR ANDROID APPWITH THE EVERNOTE API

sexta-feira, 30 de novembro de 12

Backend Developer @MobjoyGames

It’sa Me... MARCO

Marcos Paulo Souza Damasceno

sexta-feira, 30 de novembro de 12

What is Evernote?

A single place to keep everything that you have, available from almost any device with a

great search functionality.

Remember everything

Everything you capture is automatically processed, indexed, and made searchable. If you like, you can add tags or organize your notes into different notebooks.

sexta-feira, 30 de novembro de 12

Evernote Beyond Evernote

Evernote for Developers

Add value to the Notes people already have

* HTML Notes (ENML)* Create Read Only Notes with your information and layout* Organize your app’s data* Attach Resources (Audio Clips, Images, PDFs, etc...)* Search Features.

Store your App’s data as notes:

Access Evernote WebServices

Create Notes for your own application

sexta-feira, 30 de novembro de 12

The Evernote Cloud API

Composed by a Data Model and its functions

Integrate your Application

Referenced as EDAM - the Evernote Data Acess and Management API

C++, C#, Objetive-C, Java, JavaME, Ruby, Python and etc

Same API used by Evernote’s Apps

Access to API provided by SDK’s

sexta-feira, 30 de novembro de 12

Understanding the API

UserStore:Manage user accounts

The basics

NoteStore:The content of a User’s Evernote Account

Process to start working with some user’s notesLogin to EvernoteGet authorization from the user to your AppGet the NoteStore URL for user and Authetincation Token

Do not hardcode NoteStore URL, it may differ by usersexta-feira, 30 de novembro de 12

Understanding the API

Authentication

Evernote uses OAuth

API function called using Access Token

Consumer Key and Consumer Secret required

sexta-feira, 30 de novembro de 12

Understanding the API

But don’t worry about it, the Android SDK handles OAuth for you

Authentication

sexta-feira, 30 de novembro de 12

Understanding the API

Data Model

sexta-feira, 30 de novembro de 12

Evernote for Developers

Evernote Sandbox

Safe place for you to test your application, a separate instance of

the Evernote Service

Create an account at https://sandbox.evernote.com

Your API Key will only work in the sandbox environment

sexta-feira, 30 de novembro de 12

Let’s Get It Started

sexta-feira, 30 de novembro de 12

Let’s Get It Started

http://dev.evernote.com/documentation/cloud/

sexta-feira, 30 de novembro de 12

Let’s Get It Started

Register for an API key

sexta-feira, 30 de novembro de 12

Let’s Get It Started

http://dev.evernote.com/documentation/cloud/

sexta-feira, 30 de novembro de 12

https://github.com/evernote

Let’s Get It Started

Download the API Android SDK

sexta-feira, 30 de novembro de 12

Let’s Get It Started

http://dev.evernote.com/documentation/cloud/

sexta-feira, 30 de novembro de 12

Studying HelloEDAM

Overview

Example application that comes with the SDK

Create an “Android Project from an Existing Code” in Eclipse pointing to

the SDK root folder

sexta-feira, 30 de novembro de 12

Studying HelloEDAM

Getting Authentication

sexta-feira, 30 de novembro de 12

Studying HelloEDAM

Creating a Resource

sexta-feira, 30 de novembro de 12

Studying HelloEDAM

Creating a new Note

ENL, more about it at http://dev.evernote.com/documentation

/cloud/chapters/ENML.php

sexta-feira, 30 de novembro de 12

Studying HelloEDAM

Creating a Notebook live coding!!!

sexta-feira, 30 de novembro de 12

Studying HelloEDAM

Creating a Note With Tag live coding!!!

sexta-feira, 30 de novembro de 12

Studying HelloEDAM

Creating a Read-Only Note live coding!!!

sexta-feira, 30 de novembro de 12

The Reference API

The reference for the API data, functions and everything

http://dev.evernote.com/documentation/reference/

sexta-feira, 30 de novembro de 12

Why Use Evernote to store your app’s data?sexta-feira, 30 de novembro de 12

Why Use Evernote to store your app’s data?

Because your app’s data will be everywhere, well organized and with a pretty interface

Because you will give data mobility to your users

sexta-feira, 30 de novembro de 12

Why Use Evernote to store your app’s data?

HTML (ENML) customization for Notes!

sexta-feira, 30 de novembro de 12

Why Use Evernote to store your app’s data?

The Evernote Trunk

Apps made using Evernote platform are added to the Evernote Trunk

Available through the Web, the MacOS App and the Windows Appsexta-feira, 30 de novembro de 12

Evernote Hackaton Brazilsexta-feira, 30 de novembro de 12

Evernote Hackaton Brazil 2012

The last one took place in São Paulo, November 9th to 11th

The goal was develop an Android App using Evernote APIThe main prize was a travel to Silicon Valley

for 2 people of the winner group to visit the Evernote HQ

sexta-feira, 30 de novembro de 12

Evernote Hackaton Brazil 2012

The last one took place in São Paulo, November 9th to 11th

We were there, we didn’t win but we’ve learnt a lot. Don’t let the next opportunity pass by.

sexta-feira, 30 de novembro de 12

Any questions or suggestions about the Evernote Android SDK

Contacts

Tyler SmithSr. Android Engineer @Evernote

@TylerSmithNet

tsmith@evernote.com

sexta-feira, 30 de novembro de 12

The Speaker!

Contacts

Marcos Paulo Damasceno@marcospaulosd

linkedin.com/in/marcosdamasceno

github.com/marcospaulo

slideshare.net/mpsddspm

THANKS!!!!!!sexta-feira, 30 de novembro de 12

Questions?

sexta-feira, 30 de novembro de 12