Activity Forums Salesforce® Discussions Salesforce API and it’s usage

  • chanchal kumar

    Member
    September 10, 2018 at 10:15 am

    Hello Avnish

    Example of salesforce APIs:

    1. REST API:  is a simple and powerful web service based on RESTful principles. It exposes all sorts of Salesforce functionality via REST resources and HTTP methods. For example, you can create, read, update, and delete (CRUD) records, search or query your data, retrieve object metadata, and access information about limits in your org. REST API supports both XML and JSON.
    2. SOAP API:  is a robust and powerful web service based on the industry-standard protocol of the same name. It uses a Web Services Description Language (WSDL) file to rigorously define the parameters for accessing data through the API. SOAP API supports XML only. Most of the SOAP API functionality is also available through REST API. It just depends on which standard better meets your needs.
    3. Bulk API: is a specialized RESTful API for loading and querying lots of data at once. By lots, we mean 50,000 records or more. Bulk API is asynchronous, meaning that you can submit a request and come back later for the results. This approach is the preferred one when dealing with large amounts of data. There are two versions of Bulk API (1.0 and 2.0). Both versions handle large amounts of data, but we use Bulk API 2.0 in this module because it’s a bit easier to use.
    4. Streaming API: is a specialized API for setting up notifications that trigger when changes are made to your data. It uses a publish-subscribe, or pub/sub, model in which users can subscribe to channels that broadcast certain types of data changes.
  • Parul

    Member
    September 10, 2018 at 11:49 am

    Hi

    SOAP API

    1)Supports data in the form of XML only 2)Requires WSDL for the integration 3)Use SOAP API in any language that supports Web services.

    REST API 1)Supports both XML and JSON format 2)Preferred for mobile and web apps since JSON being Lighter the app runs smoother and faster

    You can also use Apex SOAP and REST Web services to expose data from platform or allow an external application to invoke Apex methods.

     

    Thanks.

  • madhulika shah

    Member
    September 10, 2018 at 1:02 pm

    Hi Avnish,

    Examples of salesforce api's are:

    API Name                       Protocol                   Data Format             Communication

    REST API                       REST                        JSON, XML                  Synchronous

    SOAP API                      SOAP (WSDL)         XML                              Synchronous

    Chatter REST API          REST                        JSON, XML                    Synchronous

    User Interface API          REST                        JSON                               Synchronous

    Analytics REST API      REST                         JSON, XML                    Synchronous

    Bulk API                         REST                        CSV, JSON, XML            Asynchronous

    Metadata API                 SOAP (WSDL)         XML                                 Asynchronous

    Streaming API               Bayeux                       JSON                                Asynchronous

    Apex REST API           REST                          JSON, XML, Custom       Synchronous

    Apex SOAP API          SOAP (WSDL)           XML                                  Synchronous

    Tooling API                 REST or SOAP (WSDL)  JSON, XML, Custom   Synchronous

     

  • shariq

    Member
    September 15, 2018 at 10:39 am

    Hi,

    Salesforce Data APIs. They are REST API, SOAP API, Bulk API, and StreamingAPI. Together they make up the Salesforce data APIs. Their purpose is to let you manipulate your Salesforce data, whereas other APIs let you do things like customize page layouts or build custom development tools.

    Web services are of two kinds: Simple Object Access Protocol (SOAP) and Representational State Transfer (REST). SOAP defines a standard communication protocol (set of rules) specification for XML-based message exchange. SOAP uses different transport protocols, such as HTTP and SMTP.

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs