Skip to content

Commit ae34480

Browse files
committed
SDK regeneration
1 parent dea1fe4 commit ae34480

File tree

442 files changed

+29430
-9052
lines changed

Some content is hidden

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

442 files changed

+29430
-9052
lines changed

README.md

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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.
77

88
## Installation
99

@@ -25,12 +25,8 @@ from intercom import Intercom
2525
client = Intercom(
2626
token="YOUR_TOKEN",
2727
)
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",
28+
client.ai_content.create_content_import_source(
29+
url="https://www.example.com",
3430
)
3531
```
3632

@@ -49,12 +45,8 @@ client = AsyncIntercom(
4945

5046

5147
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",
48+
await client.ai_content.create_content_import_source(
49+
url="https://www.example.com",
5850
)
5951

6052

@@ -70,7 +62,7 @@ will be thrown.
7062
from intercom.core.api_error import ApiError
7163

7264
try:
73-
client.articles.create(...)
65+
client.ai_content.create_content_import_source(...)
7466
except ApiError as e:
7567
print(e.status_code)
7668
print(e.body)
@@ -107,7 +99,7 @@ from intercom import Intercom
10799
client = Intercom(
108100
...,
109101
)
110-
response = client.articles.with_raw_response.create(...)
102+
response = client.ai_content.with_raw_response.create_content_import_source(...)
111103
print(response.headers) # access the response headers
112104
print(response.data) # access the underlying object
113105
pager = client.articles.list(...)
@@ -135,7 +127,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
135127
Use the `max_retries` request option to configure this behavior.
136128

137129
```python
138-
client.articles.create(..., request_options={
130+
client.ai_content.create_content_import_source(..., request_options={
139131
"max_retries": 1
140132
})
141133
```
@@ -155,7 +147,7 @@ client = Intercom(
155147

156148

157149
# Override timeout for a specific method
158-
client.articles.create(..., request_options={
150+
client.ai_content.create_content_import_source(..., request_options={
159151
"timeout_in_seconds": 1
160152
})
161153
```

poetry.lock

Lines changed: 3 additions & 3 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "python-intercom"
33

44
[tool.poetry]
55
name = "python-intercom"
6-
version = "4.0.0"
6+
version = "5.0.0"
77
description = ""
88
readme = "README.md"
99
authors = []

0 commit comments

Comments
 (0)