How to use basic API
is an interface of data receiving from the pages of a user's website. It is a GET-only
interface that allows to receive only data (pages) of website modules, i.e. it works with guest (unauthorized user) permissions. At the moment it is available in 11 modules: blog, board, dir, gb, load, news, photo, publ, stuff, forum, index.
To enable API, go to Control Panel -> Settings -> Common Settings -> Allow API usage
It is disabled by default.
HOW TO USE
The format of the data, given to API is XML-RPC
. All requests to the interface are performed by means of GET requests
. You can use the function as follows:
– the URL of a user's website where API is used; MODULENAME
– website module; ANYRELPATH
– any module page where API usage is allowed.
So it is actually enough to add /api/
between the website address and the name of the module to use the interface (if it is enabled for the website).