Flexbe API documentation
API (Application Programming Interface) allows you to get and change information about leads, clients, payments as well as to send information about events to your scripts.
API is used to send GET and POST requests to the URL which looks as follows:
http://{your_domain}/mod/api/?api_key={key}
api_key is used to identify all the requests to API. You can generate and change it in the Site panel.
The data is returned in the UTF-8 encoding, in JSON format. The content is stored in the “data” object.
- curl 'http://yourdomain.com/mod/api/?api_key=5xxxxxfc7103bde368b708b7f3ed95a004496740&method=checkConnection'
/* Response */
{"status":1} - echo file_get_contents(
'http://yourdomain.com/mod/api/'
.'?api_key=5xxxc7103bde368b708b7f3ed95a004496740'
.'&method=checkConnection'
);
// php.ini must have an option allow_url_fopen=On
/* Response */
{"status":1} - var request = require('request'); // npm install request request.post({ uri: 'http://yourdomain.com/mod/api/', form: {
api_key:'5xxxc7103bde368b708b7f3ed95a004496740',
method:'checkConnection'
}}, function(err, res, body) {
console.log(JSON.parse(body));
});
/* Response */
{"status":1}