add sample curl command
This commit is contained in:
parent
6401a93905
commit
b7ad2c7188
1 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,12 @@ In the package [`homeassistant.remote`](https://github.com/balloob/home-assistan
|
|||
|
||||
The API accepts and returns only JSON encoded objects. All API calls have to be accompanied by the header `X-HA-Access: YOUR_PASSWORD` (YOUR_PASSWORD as specified in your `configuration.yaml`).
|
||||
|
||||
```bash
|
||||
curl -X GET \
|
||||
-H "x-ha-access: YOUR_PASSWORD" \
|
||||
http://localhost:8123/api
|
||||
```
|
||||
|
||||
<p class='note'>
|
||||
You can append <code>?api_password=YOUR_PASSWORD</code> to any url to log in automatically.
|
||||
</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue