Playground SmartAdmin PHP REST API Playground

Configuration

The API demo requires the Authorization header. Check your users and access_tokens tables. To create your own access token, run the command below

php /var/www/smartadmin/utils/create_access_token.php --username=lodev09
Authentication

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:

Result

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