All guides
PHP
One PHP file and a rewrite rule.
Download virtual-employee-php.zipAdd it to your site
- Copy virtual-employee.php into your public folder and set VIRTUAL_EMPLOYEE_SECRET to a long random key.
- Send the three addresses to it, then change ve_list() and ve_save() to use your database.
# Apache (.htaccess)
RewriteEngine On
RewriteRule ^api/ve/(articles|news|languages)$ virtual-employee.php [L,QSA]
# nginx
location ~ ^/api/ve/(articles|news|languages)$ { rewrite ^ /virtual-employee.php last; }In your panel
- In your panel, open the employee that writes (articles or news) and go to the website settings.
- Enter your website address (https, the root of the domain) and the same website key as on your site. Press “Make a key for me” if you have none yet.
- Save and press “Write one now” to test. Keep publishing without asking off until you have seen a draft arrive.