Download - Salesforce1 API Overview
Platform Architecture
SOAP API
• SOAP/WSDL• 2 Versions:
• Enterprise: Strongly typed, Org specific• Partner: Dynamic, Requires datamodel inspection
• Extensive API, well suited for system integrations
• https://www.salesforce.com/us/developer/docs/api/
REST API
• Access data over REST• XML or JSON• Lightweight• Best suited for browser or mobile applications
• https://www.salesforce.com/us/developer/docs/api_rest/
Custom APIs
• Apex code• SOAP or REST• XML, JSON or custom formats• Synchronous• Write your own API in Apex
• https://developer.salesforce.com/page/Apex_Web_Services
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.
Chatter REST API
• REST• XML or JSON• Synchronous• Abstracted data model• Chatter specific API to access the social collaboration part of force.com
• http://www.salesforce.com/us/developer/docs/chatterapi/
BULK API
• REST• XML or CSV• Asynchronous• Process >1.000.000 records
• https://www.salesforce.com/us/developer/docs/api_asynch/
Analytics API
• REST• JSON• Synchronous & Asynchronous• Access the force.com reporting engine: configuration and data
• http://www.salesforce.com/us/developer/docs/api_analytics/index.htm
Streaming API
• JSON• Asynchronous• Near real-time• Receive push notifications when records are created or updated
• http://www.salesforce.com/us/developer/docs/api_streaming/
Metadata API
• SOAP/WSDL• Access the force.com configuration• Deploy between orgs !
• http://www.salesforce.com/us/developer/docs/api_meta/
Tooling API
• SOAP or REST• XML or JSON• Exposes developer features
• http://www.salesforce.com/us/developer/docs/api_tooling/index.htm
API Overview
Questions ?
La communauté de développeurs 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 Rycke@SamuelDeRycke