Tech talk live on new alfresco api

Post on 23-Aug-2014

1.697 views 2 download

Tags:

description

 

Transcript of Tech talk live on new alfresco api

Tech Talk Live: The Alfresco API Peter Monks & Jeff Potts

Alfresco API & SDK

•  What are we announcing? – New public API for Alfresco in the Cloud

•  Based on CMIS (AtomPub) and Alfresco REST (JSON)

– Alfresco Mobile SDK •  iOS and Android client SDKs •  Wrap the new Cloud API and the existing on-

premise API •  Coming soon!

Alfresco API Launch Partners

LET’S SEE HOW THIS WORKS!

Alfresco Cloud UI

Developer Portal http://developer.alfresco.com

http://youtu.be/TdAFYy0QttU

User grants access

Sign up for an API key

How OAuth2 Authentication Works

Assigns you a consumer key

and secret

Application Alfresco End-User

Invokes the Authorize URL Asks the user for

permission

Redirects to your app’s

callback URL Grabs the

returned code

Exchanges the code for an

access token Returns an access token

and expiration Adds the token to Authorization

header

Not shown: Refresh after access token expiration

Example: Hitting the REST API

http://youtu.be/5QS0CNsPJEY

Alfresco REST API •  Sites

– Members – Favorites

•  Networks •  People •  Containers •  Activities •  Ratings •  Comments •  Tags

List will expand over time

So what is CMIS, anyway?

What is CMIS? •  Content Management Interoperability

Services •  Language-independent, vendor-neutral API

for content management – CRUD functions for nodes – Check-in/check-out – Associations – Permissions (Access Control Lists) – Policies – Queries – Repository traversal

The Beauty of CMIS

?

Presentation Tier

Content Services Tier

? Enterprise Apps Tier

REST SOAP

•  Open Source implementations of CMIS •  Apache Chemistry is the umbrella project

for all CMIS related projects within the ASF –  OpenCMIS (Java, client and server) –  cmislib (Python, client) –  phpclient (PHP, client) –  DotCMIS (.NET, client)

CMIS & Apache Chemistry in Action •  Everything you need

to know about CMIS 1.0 & 1.1

•  Lots of Groovy and Java examples

•  Also covers Python, Android, & iOS

•  Now on MEAP! •  37%-off: 12cmisal

Example: Create, Find and Comment on a Document with Java

Screenshot, TBD

http://youtu.be/1ZtmoPdCKJI

Things to Consider

•  Rate limits –  5 requests/second, 10,000 requests/day (Dev) –  50 requests/second, 100,000 requests/day (Prod)

•  No limit on # of applications •  Alfresco Cloud users own their content •  OpenCMIS 0.8.0-SNAPSHOT •  cmislib 0.5.1dev

Where to Get Help

•  Alfresco API forum •  #alfresco on freenode IRC •  Alfresco Technical Discussion Google Group •  http://code.google.com/p/alfresco-api-java-

examples •  http://code.google.com/p/alfresco-api-python-

examples •  Come by the booth!

Register App

Cloud Account Sign up for a free 10GB Alfresco network in the cloud.

Your Next Steps

Participate Join our community of developers at forums.alfresco.com, in IRC, and on Twitter

Become a Registered Developer at developer.alfresco.com Grab your app key and secret

Berlin, Germany November 6 & 7

San Jose, California November 14 & 15

http://www.alfresco.com/devcon