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

Tech talk live on new alfresco api

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Tech talk live on new alfresco api

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

Page 2: Tech talk live on new alfresco api

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!

Page 3: Tech talk live on new alfresco api
Page 4: Tech talk live on new alfresco api

Alfresco API Launch Partners

Page 5: Tech talk live on new alfresco api
Page 6: Tech talk live on new alfresco api

LET’S SEE HOW THIS WORKS!

Page 7: Tech talk live on new alfresco api

Alfresco Cloud UI

Page 8: Tech talk live on new alfresco api

Developer Portal http://developer.alfresco.com

http://youtu.be/TdAFYy0QttU

Page 9: Tech talk live on new alfresco api

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

Page 10: Tech talk live on new alfresco api

Example: Hitting the REST API

http://youtu.be/5QS0CNsPJEY

Page 11: Tech talk live on new alfresco api

Alfresco REST API •  Sites

– Members – Favorites

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

List will expand over time

Page 12: Tech talk live on new alfresco api

So what is CMIS, anyway?

Page 13: Tech talk live on new alfresco api

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

Page 14: Tech talk live on new alfresco api

The Beauty of CMIS

?

Presentation Tier

Content Services Tier

? Enterprise Apps Tier

REST SOAP

Page 15: Tech talk live on new alfresco api

•  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)

Page 16: Tech talk live on new alfresco api

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

Page 17: Tech talk live on new alfresco api

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

Screenshot, TBD

http://youtu.be/1ZtmoPdCKJI

Page 18: Tech talk live on new alfresco api

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

Page 19: Tech talk live on new alfresco api

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!

Page 20: Tech talk live on new alfresco api

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

Page 21: Tech talk live on new alfresco api

Berlin, Germany November 6 & 7

San Jose, California November 14 & 15

http://www.alfresco.com/devcon

Page 22: Tech talk live on new alfresco api