alesforce provides a variety of APIs that allows the developers to interact with the system in many ways. They are:
REST:
- By using REST API you can easily integrate with Salesforce applications using simple HTTP methods in either XML or JSON formats. It is an ideal API for developing mobile applications or external clients.
- Consider an example of retrieving information about the Salesforce version. You need to submit a request for the Versions resource by using the following code:
curl
https://yourInstance.salesforce.com/services/data/
- You have to replace the “your instance” text with the instance for your organization.
The output from this request is as follows.
[
{
"label" : "Winter '12",
"url" : "/services/data/v23.0",
"version" : "23.0"
}
...
]
Bulk: The Bulk API provides programmatic access that lets you quickly loading and querying a huge amount of data into your Salesforce organization.
Streaming: The Streaming API can be used to trigger and receive notifications, whenever changes into Salesforce data are made according to the defined SOQL query criteria. It is useful when you want notifications to be pushed from the server to the client based on your defined criteria.