Tech Talk Live: The Alfresco APIPeter 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!
How OAuth2 Authentication Works Application Alfresco End-User Sign up for an Assigns you a API key consumer key and secret Invokes the Authorize URL Asks the user for permission User grants access Redirects to Grabs the your app’s returned code callback URL Exchanges the code for an access token Returns an access token and expiration Adds the token Not shown: Refresh to Authorization header after access token expiration
Example: Hitting the REST API http://youtu.be/5QS0CNsPJEY
Alfresco REST API• Sites – Members – Favorites• Networks List will expand• People over time• Containers• Activities• Ratings• Comments• Tags
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 REST SOAP Content Services Tier ?Enterprise Apps Tier ?
• 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 inAction• 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 andComment 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!
Your Next StepsCloud Account Register App Participate Sign up for a Become a Registered Join our community offree 10GB Alfresco Developer at developers atnetwork in the cloud. developer.alfresco.com forums.alfresco.com, in IRC, and on Twitter Grab your app key and secret
Berlin, Germany San Jose, CaliforniaNovember 6 & 7 November 14 & 15http://www.alfresco.com/devcon