Playground SmartAdmin PHP REST API Playground


The API demo requires the Authorization header. Call /authenticate end-point first and pass in the Username and Password to secure a token. To set a user with password, use the following command:

php /var/www/smartadmin/demo/utils/set_password.php --username=lodev09 --password=YOUR_PASSWORD




Using the jQuery Ajax code example, here is the result from your request:

Example codes

PHP Curl

Using the php-curl-class PHP package, put this code somewhere in your php script:

Curl command line

Run the following command in your terminal:

jQuery Ajax

Put the following code in your <script> block: