restpriority-web-sdk

Priority Web SDK vs REST API


When developing a website using Priority's new tools, in which cases would I be better served accessing Priority using the Web SDK than by using the REST API?

How about vice-versa?


Solution

  • It depends on you needs. REST API is mostly used to integrate with other applications while WEB SDK is used for building stand-alone applications.

    You may of course use them both in the same app.

    There are some technical differences:

    1. REST API executes triggers at a row level while WEB SDK executes triggers at a field level.
    2. REST API has no support for procedures and choose/search lists while the WEB SDK does.

    I would recommend using the REST API for large data retrievals and the WEB SDK for smaller request.