Practical use of the API (PHP)