Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.0.0"
".": "2.1.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 10
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openint%2Fopenint-fc7527fabd8beebd9c639bd6ac66f10ac26805db119cb625c67840c51f622dd9.yml
openapi_spec_hash: 394209b9c4d294c6509002851a5448c8
config_hash: 9e645fd6bff74d3299e2924f99ec4034
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openint%2Fopenint-bacbc8c9cbe5ff0643c5413e7f1ef80fe15094393e788142b84075998fc7ad85.yml
openapi_spec_hash: 044dac4816a3a8fed6a303cf2eb65ed4
config_hash: be212d1ce37acf5836869f40d1654c82
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 2.1.0 (2025-05-19)

Full Changelog: [v2.0.0...v2.1.0](https://github.com/openintegrations/python-sdk/compare/v2.0.0...v2.1.0)

### Features

* **api:** adding message template ([85b7294](https://github.com/openintegrations/python-sdk/commit/85b729443bfe6aed5b5e1335a058ea721a425ec8))
* **api:** scheme sync ([db2b3f4](https://github.com/openintegrations/python-sdk/commit/db2b3f4d82a2a498b4b67eadc5191a3e1ff28220))
* **docs:** updating documented docs for stainless ([b5af4c3](https://github.com/openintegrations/python-sdk/commit/b5af4c3102c40db19cac6fbac2968b2d453e2764))

## 2.0.0 (2025-05-19)

Full Changelog: [v1.6.1...v2.0.0](https://github.com/openintegrations/python-sdk/compare/v1.6.1...v2.0.0)
Expand Down
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ pip install openint
The full API of this library can be found in [api.md](api.md).

```python
import os
from openint import Openint

client = Openint()
client = Openint(
token=os.environ.get(
"OPENINT_API_KEY_OR_CUSTOMER_TOKEN_OR_CUSTOMER_API_KEY"
), # This is the default and can be omitted
)

page = client.list_connections()
print(page.items)
Expand All @@ -42,10 +47,15 @@ so that your Token is not stored in source control.
Simply import `AsyncOpenint` instead of `Openint` and use `await` with each API call:

```python
import os
import asyncio
from openint import AsyncOpenint

client = AsyncOpenint()
client = AsyncOpenint(
token=os.environ.get(
"OPENINT_API_KEY_OR_CUSTOMER_TOKEN_OR_CUSTOMER_API_KEY"
), # This is the default and can be omitted
)


async def main() -> None:
Expand Down Expand Up @@ -76,7 +86,7 @@ from openint import Openint

client = Openint()

response = client.create_magic_link(
response = client.create_token(
customer_id="x",
connect_options={
"connector_names": ["acme-oauth2"],
Expand Down
4 changes: 2 additions & 2 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ Types:
from openint.types import (
CheckConnectionResponse,
CreateConnectionResponse,
CreateMagicLinkResponse,
CreateTokenResponse,
DeleteConnectionResponse,
GetConnectionResponse,
GetCurrentUserResponse,
GetMessageTemplateResponse,
ListConnectionConfigsResponse,
ListConnectionsResponse,
ListConnectorsResponse,
Expand All @@ -21,11 +21,11 @@ Methods:

- <code title="post /connection/{id}/check">client.<a href="./src/openint/_client.py">check_connection</a>(id) -> <a href="./src/openint/types/check_connection_response.py">CheckConnectionResponse</a></code>
- <code title="post /connection">client.<a href="./src/openint/_client.py">create_connection</a>(\*\*<a href="src/openint/types/client_create_connection_params.py">params</a>) -> <a href="./src/openint/types/create_connection_response.py">CreateConnectionResponse</a></code>
- <code title="post /customer/{customer_id}/magic-link">client.<a href="./src/openint/_client.py">create_magic_link</a>(customer_id, \*\*<a href="src/openint/types/client_create_magic_link_params.py">params</a>) -> <a href="./src/openint/types/create_magic_link_response.py">CreateMagicLinkResponse</a></code>
- <code title="post /customer/{customer_id}/token">client.<a href="./src/openint/_client.py">create_token</a>(customer_id, \*\*<a href="src/openint/types/client_create_token_params.py">params</a>) -> <a href="./src/openint/types/create_token_response.py">CreateTokenResponse</a></code>
- <code title="delete /connection/{id}">client.<a href="./src/openint/_client.py">delete_connection</a>(id) -> <a href="./src/openint/types/delete_connection_response.py">DeleteConnectionResponse</a></code>
- <code title="get /connection/{id}">client.<a href="./src/openint/_client.py">get_connection</a>(id, \*\*<a href="src/openint/types/client_get_connection_params.py">params</a>) -> <a href="./src/openint/types/get_connection_response.py">GetConnectionResponse</a></code>
- <code title="get /viewer">client.<a href="./src/openint/_client.py">get_current_user</a>() -> <a href="./src/openint/types/get_current_user_response.py">GetCurrentUserResponse</a></code>
- <code title="get /ai/message_template">client.<a href="./src/openint/_client.py">get_message_template</a>(\*\*<a href="src/openint/types/client_get_message_template_params.py">params</a>) -> <a href="./src/openint/types/get_message_template_response.py">GetMessageTemplateResponse</a></code>
- <code title="get /connector-config">client.<a href="./src/openint/_client.py">list_connection_configs</a>(\*\*<a href="src/openint/types/client_list_connection_configs_params.py">params</a>) -> <a href="./src/openint/types/list_connection_configs_response.py">SyncOffsetPagination[ListConnectionConfigsResponse]</a></code>
- <code title="get /connection">client.<a href="./src/openint/_client.py">list_connections</a>(\*\*<a href="src/openint/types/client_list_connections_params.py">params</a>) -> <a href="./src/openint/types/list_connections_response.py">SyncOffsetPagination[ListConnectionsResponse]</a></code>
- <code title="get /connector">client.<a href="./src/openint/_client.py">list_connectors</a>(\*\*<a href="src/openint/types/client_list_connectors_params.py">params</a>) -> <a href="./src/openint/types/list_connectors_response.py">SyncOffsetPagination[ListConnectorsResponse]</a></code>
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "openint"
version = "2.0.0"
version = "2.1.0"
description = "The official Python library for the Openint API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
Loading