Skip to content

Commit f933f95

Browse files
SDK regeneration
1 parent 3aac991 commit f933f95

File tree

458 files changed

+30271
-9254
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

458 files changed

+30271
-9254
lines changed

README.md

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,22 @@
33
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fintercom%2Fpython-intercom)
44
[![pypi](https://img.shields.io/pypi/v/python-intercom)](https://pypi.python.org/pypi/python-intercom)
55

6-
The Intercom Python library provides convenient access to the Intercom API from Python.
6+
The Intercom Python library provides convenient access to the Intercom APIs from Python.
7+
8+
## Table of Contents
9+
10+
- [Installation](#installation)
11+
- [Reference](#reference)
12+
- [Usage](#usage)
13+
- [Async Client](#async-client)
14+
- [Exception Handling](#exception-handling)
15+
- [Pagination](#pagination)
16+
- [Advanced](#advanced)
17+
- [Access Raw Response Data](#access-raw-response-data)
18+
- [Retries](#retries)
19+
- [Timeouts](#timeouts)
20+
- [Custom Client](#custom-client)
21+
- [Contributing](#contributing)
722

823
## Installation
924

@@ -25,12 +40,8 @@ from intercom import Intercom
2540
client = Intercom(
2641
token="YOUR_TOKEN",
2742
)
28-
client.articles.create(
29-
title="Thanks for everything",
30-
description="Description of the Article",
31-
body="Body of the Article",
32-
author_id=1295,
33-
state="published",
43+
client.ai_content.create_content_import_source(
44+
url="https://www.example.com",
3445
)
3546
```
3647

@@ -49,12 +60,8 @@ client = AsyncIntercom(
4960

5061

5162
async def main() -> None:
52-
await client.articles.create(
53-
title="Thanks for everything",
54-
description="Description of the Article",
55-
body="Body of the Article",
56-
author_id=1295,
57-
state="published",
63+
await client.ai_content.create_content_import_source(
64+
url="https://www.example.com",
5865
)
5966

6067

@@ -70,7 +77,7 @@ will be thrown.
7077
from intercom.core.api_error import ApiError
7178

7279
try:
73-
client.articles.create(...)
80+
client.ai_content.create_content_import_source(...)
7481
except ApiError as e:
7582
print(e.status_code)
7683
print(e.body)
@@ -107,7 +114,7 @@ from intercom import Intercom
107114
client = Intercom(
108115
...,
109116
)
110-
response = client.articles.with_raw_response.create(...)
117+
response = client.ai_content.with_raw_response.create_content_import_source(...)
111118
print(response.headers) # access the response headers
112119
print(response.data) # access the underlying object
113120
pager = client.articles.list(...)
@@ -135,7 +142,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
135142
Use the `max_retries` request option to configure this behavior.
136143

137144
```python
138-
client.articles.create(..., request_options={
145+
client.ai_content.create_content_import_source(..., request_options={
139146
"max_retries": 1
140147
})
141148
```
@@ -155,7 +162,7 @@ client = Intercom(
155162

156163

157164
# Override timeout for a specific method
158-
client.articles.create(..., request_options={
165+
client.ai_content.create_content_import_source(..., request_options={
159166
"timeout_in_seconds": 1
160167
})
161168
```

poetry.lock

Lines changed: 50 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ name = "python-intercom"
33

44
[tool.poetry]
55
name = "python-intercom"
6-
version = "4.0.0"
6+
version = "4.1.0"
77
description = ""
88
readme = "README.md"
99
authors = []
1010
keywords = []
11-
license = "MIT"
1211

1312
classifiers = [
1413
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)