AppShore API for developers
AppShore API for developers was promised (and ready) long time ago and yet stayed invisible because we procrastinated to finish the mandatory documentation to use it! At last, the documentation is published online at http://www.appshore.com/?&op=developers.base.start.
For those who don't have yet jump to the link above, here what we say in the overview:The AppShore API allows third party developers to build interfaces between external applications and the AppShore platform. The AppShore API is secure, powerful, easy to use and covers all the features needed for accessing and managing the data in your AppShore instance.The following services are currently offered within the API:
- Authentication and authorization to access data according your defined Role Based Access Control policy
- Data schema to discover the specific implementation of your data sources
- The 4 standard CRUD functions: Create, Retrieve, Update, Delete with some advanced features
The AppShore API gives access to data through simple HTTP POST or GET. If needed and with a little loss of performance, developers can decide to use a secure SSL connection (https) instead of a standard http for API calls. Calls and results are executed and delivered in XML or JSON format at the developers choice.
Examples of usage of the AppShore API are as neutral as possible. They can be executed from a web browser, a Curl command line or adapted to a specific programmatic language. Results are mostly displayed in XML to make them more readable. It is up to the developers to transpose them in their own context.
Example of call with XML through a secure SSL connection:https://demo.appshore.net/xml.php?&sid=TOKEN&op=accounts.retrieve
Example of call with JSON:http://demo.appshore.net/json.php?&sid=TOKEN&op=accounts.retrieve
Example of XML return:<accounts>
<accounts_item>
<account_id>1</account_id>
<account_name>Account 1</account_name>
. . .
<user_id>azerty</user_id>
</accounts_item>
<accounts_item>
<account_id>2</account_id>
<account_name>Account 2</account_name>
. . .
<user_id>qwerty</user_id>
</accounts_item>
. . .
<items_count>123</items_count>
<status>ok</status>
</accounts>
</API>
Example of JSON return: