In the recent update of the Webasyst framework 220.127.116.1122 and Shop-Script 5.1.8 we have introduced an important feature for the entire platform: API.
API (Application Programming Interface) constitutes a set of special methods provided by the framework and installed applications to access framework's data from external software products. Appearance of an API in Webasyst makes it possible to create various client tools tightly integrated with framework-based applications including Shop-Script 5. For example, this gives you the opportunity to develop a native iOS, Android, Windows, or Mac OS application to manage Shop-Script 5 data (products, categories, orders, customers, etc.).
Within this update we have added one common access point for the framework's API:
api.php, and, to show you the API's functionality, several methods to manage the data stored in the Stickies application (boards & stickers) and in Shop-Script 5 (products & categories).
User authorization in Webasyst API is based on the OAuth 2.0 protocol: first an authorization token (access key) is requested by specifying the IDs of the desired Webasyst applications and then their available API methods are called.
For example, a call of an API method returning information about a certain product in Shop-Script 5 occurs via a URL of the following form:
Webasyst API documentation (PDF):
– General information on the framework's API
– List and descriptions of API methods of Shop-Script 5 and Stickies applications implemented in this recent update
If you are a developer, please share your opinion of the API: what methods you need, what kind of tasks you would like to be able to solve by means of the API, what questions arise, or what difficulties you are currently facing. We shall be happy to receive any feedback. Thank you!