Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
stefannica committed Feb 7, 2025
1 parent f76a6d7 commit 1e2f9ef
Show file tree
Hide file tree
Showing 3 changed files with 629 additions and 639 deletions.
30 changes: 18 additions & 12 deletions docs/book/getting-started/zenml-pro/pro-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,24 @@ To generate a new API token for the ZenML Pro API:
![API Tokens](../../.gitbook/assets/zenml-pro-api-token-02.png)

4. Simply use the API token as the bearer token in your HTTP requests. For example, you can use the following command to check your current user:

* using curl:

```bash
curl -H "Authorization: Bearer YOUR_API_TOKEN" https://cloudapi.zenml.io/users/me
```

* using wget:

```bash
wget -qO- --header="Authorization: Bearer YOUR_API_TOKEN" https://cloudapi.zenml.io/users/me
```
* using curl:
```bash
curl -H "Authorization: Bearer YOUR_API_TOKEN" https://cloudapi.zenml.io/users/me
```
* using wget:
```bash
wget -qO- --header="Authorization: Bearer YOUR_API_TOKEN" https://cloudapi.zenml.io/users/me
```
* using python:
```python
import requests
response = requests.get(
"https://cloudapi.zenml.io/users/me",
headers={"Authorization": f"Bearer YOUR_API_TOKEN"}
)
print(response.json())
```

{% hint style="info" %}
**Important Notes**
Expand Down
Loading

0 comments on commit 1e2f9ef

Please sign in to comment.