communications-mining
latest
false
Importante :
Este conteúdo foi traduzido com auxílio de tradução automática.
UiPath logo, featuring letters U and I in white
Guia do desenvolvedor do Communications Mining
Last updated 19 de nov de 2024

Anexos

# Attachments

## Get attachment content by reference

GET `/api/v1/attachments/<attachment_reference>`

Permissions required: **View sources**

- Bash

```bash
curl "https://<my_api_endpoint>/api/v1/attachments/CjQSEIExTHEqtdntoxz2WtbZDNEiIIVqcP1Sfx2L4epyRQDasa1RSODvheQ3bvLhj3L-_81G" \
  -H "Authorization: Bearer $COMMUNICATIONS_MINING_TOKEN"
```

- Python

```python
import os

import requests

response = requests.get(
    "https://<my_api_endpoint>/api/v1/attachments/CjQSEIExTHEqtdntoxz2WtbZDNEiIIVqcP1Sfx2L4epyRQDasa1RSODvheQ3bvLhj3L-_81G",
    headers={
        "Authorization": "Bearer " + os.environ["COMMUNICATIONS_MINING_TOKEN"]
    },
)

print(response.content)
```

- Response

```bash
<binary data>
```
# Attachments

## Get attachment content by reference

GET `/api/v1/attachments/<attachment_reference>`

Permissions required: **View sources**

- Bash

```bash
curl "https://<my_api_endpoint>/api/v1/attachments/CjQSEIExTHEqtdntoxz2WtbZDNEiIIVqcP1Sfx2L4epyRQDasa1RSODvheQ3bvLhj3L-_81G" \
  -H "Authorization: Bearer $COMMUNICATIONS_MINING_TOKEN"
```

- Python

```python
import os

import requests

response = requests.get(
    "https://<my_api_endpoint>/api/v1/attachments/CjQSEIExTHEqtdntoxz2WtbZDNEiIIVqcP1Sfx2L4epyRQDasa1RSODvheQ3bvLhj3L-_81G",
    headers={
        "Authorization": "Bearer " + os.environ["COMMUNICATIONS_MINING_TOKEN"]
    },
)

print(response.content)
```

- Response

```bash
<binary data>
```

Esta página foi útil?

Obtenha a ajuda que você precisa
Aprendendo RPA - Cursos de automação
Fórum da comunidade da Uipath
Uipath Logo White
Confiança e segurança
© 2005-2024 UiPath. Todos os direitos reservados.