问题
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?
回答1:
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:
- REST API executes triggers at a row level while WEB SDK executes triggers at a field level.
- 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.
来源:https://stackoverflow.com/questions/44636898/priority-web-sdk-vs-rest-api