salesforce1 api overview
Click here to load reader
Post on 21-Oct-2014
357 views
Embed Size (px)
DESCRIPTION
These are the slides from the presentation at the Salesforce1 Word Tour event at Paris 2014-06-26 by Samuel De Rycke in the Developer TheatreTRANSCRIPT
Using the template
Platform API overview
Samuel De RyckeSalesforce Developer at [email protected]@SamuelDeRycke
Platform Architecture
Where are APIs situated in the overal architecture, and what is their purpose ?
Gateways of communication, system/automated access to data and configuration. Exchange data with other systems in your company
SOAP API
SOAP/WSDL2 Versions:Enterprise: Strongly typed, Org specificPartner: Dynamic, Requires datamodel inspectionExtensive API, well suited for system integrations
https://www.salesforce.com/us/developer/docs/api/
Wsdl needs to be reloaded for new metadata versions, Partner version. Some more functionality than the REST API, oldest API.
All custom objects automatically exposed !
REST API
Access data over RESTXML or JSONLightweightBest suited for browser or mobile applications
https://www.salesforce.com/us/developer/docs/api_rest/
Lightweight, Search-Fetch-View or Modify. Use it for user /interaction applications. Not well suited for many record processingAll custom objects automatically exposed !
Custom APIs
Apex codeSOAP or RESTXML, JSON or custom formatsSynchronousWrite your own API in Apex
https://developer.salesforce.com/page/Apex_Web_Services
As simple as making global classes with a few Annotations, no extra overhead. Platform does all the work.
@RestResource(urlMapping='/yourUrl')@[email protected]@[email protected]
webService static SOAP
Custom APIs Use Case
Challenge: External mobile application needs to store multiple records in multiple objects in a transactional process.Issue: REST Api handles insert and update calls in separate requests per record
Solution: We wrote our own custom Apex REST endpoint to accept a custom datatype which was wrapper around the salesforce sObjects. Now we could handle the transactional process in Apex.
All or nothing/ rollback
Chatter REST API
RESTXML or JSONSynchronousAbstracted data modelChatter specific API to access the social collaboration part of force.com
http://www.salesforce.com/us/developer/docs/chatterapi/
Users, groups, composite feed posts, followers and files. Abstracted data model -> logical data model. API similar to those of Twitter or Facebook.
BULK API
RESTXML or CSVAsynchronousProcess >1.000.000 records
https://www.salesforce.com/us/developer/docs/api_asynch/
Optimized for manipulating large sets of data. Batchese are processed asynchronously. SETUP > Monitor > JOBS > Bulk Data Load Jobs
Implemented in the salesforce dataloader
Analytics API
RESTJSONSynchronous & AsynchronousAccess the force.com reporting engine: configuration and data
http://www.salesforce.com/us/developer/docs/api_analytics/index.htm
Access to report data as configured in the report builder. Use report data in custom objects. Custom visualizations. Automate reporting tasks, Filter on the fly.
Streaming API
JSONAsynchronousNear real-timeReceive push notifications when records are created or updated
http://www.salesforce.com/us/developer/docs/api_streaming/
Publish/Subscribe model. Define pushtopics with SOQL queries. Subscribe and wait for push notifications. No more polling and wasting resources and API calls.Bayeux & CometD to maintain server connections for long periods of time.
Metadata API
SOAP/WSDLAccess the force.com configurationDeploy between orgs !
http://www.salesforce.com/us/developer/docs/api_meta/
Access organization configuration, deploy changes between environments, Continuous integration.Configuration backups
Tooling API
SOAP or RESTXML or JSONExposes developer features
http://www.salesforce.com/us/developer/docs/api_tooling/index.htm
Code execution, test SOQL statements, Manage working version of Apex classes and Visualforce pages. Test code execution and code coverage results. Analyze Debug logs and Heap dumps.
Autocomplete Build custom IDE
API Overview
Questions ?
La communaut de dveloppeurs Salesforce en France
Paris: http://www.meetup.com/Paris-Salesforce-Developer-User-Group/
St Quentin: http://www.meetup.com/Saint-Quentin-Salesforce-Developer-Group/
Samuel De [email protected]