Communications Mining
最新
False
Communications Mining 开发者指南
Last updated 2024年5月17日

附件

# 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>
```

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.