Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ju5t committed Jun 3, 2024
1 parent 4630499 commit d002bd9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,16 @@ The first parameter is the API command you want to call. The second parameter
is an array of parameters that will be passed to the API as well. This is
optional and by default an empty array is used.

You can use the `post` or `get` method to call the API. Some API calls are only
available via `post` and some via `get`.
You can use the `post` or `get` method to call the API.

### JSON API

We also support the new JSON API. For example, to get the admin usage, you can
use the following command:

```php
$result = DirectAdmin::get('api/admin-usage', []);
```

### Impersonation

Expand Down

0 comments on commit d002bd9

Please sign in to comment.