> For the complete documentation index, see [llms.txt](https://docs.datarhei.com/core/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datarhei.com/core/api-clients.md).

# API Clients

## Golang

### Example

```go
import "github.com/datarhei/core-client-go/v16"

client, err := coreclient.New(coreclient.Config{
    Address: "https://example.com:8080",
    Username: "foo",
    Password: "bar",
})
if err != nil {
    ...
}

processes, err := client.ProcessList(coreclient.ProcessListOptions{})
if err != nil {
    ...
}
```

### Repository

{% embed url="<https://github.com/datarhei/core-client-go>" %}

## Python3

### Install

```
pip install https://github.com/datarhei/core-client-python/archive/refs/heads/main.tar.gz
```

### Example

{% tabs %}
{% tab title="Sync" %}

```python
from core_client import Client

client = Client(
    base_url="https://example.com:8080",
    username="foo",
    password="bar"
)
client.login()

process_list = client.v3_process_get_list()
for process in processes:
    print(process.id)
```

{% endtab %}

{% tab title="Async" %}

```python
import asyncio
from core_client import AsyncClient

client = AsyncClient(
    base_url="https://example.com:8080",
    username="foo",
    password="bar"
)
client.login()

process_list = await client.v3_process_get_list()
for process in processes:
    print(process.id)
```

{% endtab %}
{% endtabs %}

### Repository

{% embed url="<https://github.com/datarhei/core-client-python>" %}
