Skip to content
Open
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 .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 45
configured_endpoints: 57
70 changes: 8 additions & 62 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,7 @@ client = LinqAPIV3(

chat = client.chats.create(
from_="+12052535597",
message={
"parts": [
{
"type": "text",
"value": "Hello! How can I help you today?",
}
]
},
message={},
to=["+12052532136"],
)
print(chat.chat)
Expand Down Expand Up @@ -78,14 +71,7 @@ client = AsyncLinqAPIV3(
async def main() -> None:
chat = await client.chats.create(
from_="+12052535597",
message={
"parts": [
{
"type": "text",
"value": "Hello! How can I help you today?",
}
]
},
message={},
to=["+12052532136"],
)
print(chat.chat)
Expand Down Expand Up @@ -123,14 +109,7 @@ async def main() -> None:
) as client:
chat = await client.chats.create(
from_="+12052535597",
message={
"parts": [
{
"type": "text",
"value": "Hello! How can I help you today?",
}
]
},
message={},
to=["+12052532136"],
)
print(chat.chat)
Expand Down Expand Up @@ -253,14 +232,7 @@ client = LinqAPIV3()
try:
client.chats.create(
from_="+12052535597",
message={
"parts": [
{
"type": "text",
"value": "Hello! How can I help you today?",
}
]
},
message={},
to=["+12052532136"],
)
except linq.APIConnectionError as e:
Expand Down Expand Up @@ -307,14 +279,7 @@ client = LinqAPIV3(
# Or, configure per-request:
client.with_options(max_retries=5).chats.create(
from_="+12052535597",
message={
"parts": [
{
"type": "text",
"value": "Hello! How can I help you today?",
}
]
},
message={},
to=["+12052532136"],
)
```
Expand All @@ -341,14 +306,7 @@ client = LinqAPIV3(
# Override per-request:
client.with_options(timeout=5.0).chats.create(
from_="+12052535597",
message={
"parts": [
{
"type": "text",
"value": "Hello! How can I help you today?",
}
]
},
message={},
to=["+12052532136"],
)
```
Expand Down Expand Up @@ -393,12 +351,7 @@ from linq import LinqAPIV3
client = LinqAPIV3()
response = client.chats.with_raw_response.create(
from_="+12052535597",
message={
"parts": [{
"type": "text",
"value": "Hello! How can I help you today?",
}]
},
message={},
to=["+12052532136"],
)
print(response.headers.get('X-My-Header'))
Expand All @@ -420,14 +373,7 @@ To stream the response body, use `.with_streaming_response` instead, which requi
```python
with client.chats.with_streaming_response.create(
from_="+12052535597",
message={
"parts": [
{
"type": "text",
"value": "Hello! How can I help you today?",
}
]
},
message={},
to=["+12052532136"],
) as response:
print(response.headers.get("X-My-Header"))
Expand Down
56 changes: 56 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,62 @@ Methods:
- <code title="get /v3/payment_requests">client.payment_requests.<a href="./src/linq/resources/payment_requests.py">list</a>(\*\*<a href="src/linq/types/payment_request_list_params.py">params</a>) -> <a href="./src/linq/types/payment_request_list_response.py">PaymentRequestListResponse</a></code>
- <code title="post /v3/payment_requests/{paymentRequestId}/cancel">client.payment_requests.<a href="./src/linq/resources/payment_requests.py">cancel</a>(payment_request_id) -> <a href="./src/linq/types/payment_request.py">PaymentRequest</a></code>

# PaymentProviders

Types:

```python
from linq.types import PaymentProvider, PaymentProviderConnectResponse
```

Methods:

- <code title="get /v3/payments/providers/{provider}">client.payment_providers.<a href="./src/linq/resources/payment_providers.py">retrieve</a>(provider) -> <a href="./src/linq/types/payment_provider.py">PaymentProvider</a></code>
- <code title="post /v3/payments/providers/{provider}/connect">client.payment_providers.<a href="./src/linq/resources/payment_providers.py">connect</a>(provider, \*\*<a href="src/linq/types/payment_provider_connect_params.py">params</a>) -> <a href="./src/linq/types/payment_provider_connect_response.py">PaymentProviderConnectResponse</a></code>

# PaymentHandles

Types:

```python
from linq.types import PaymentHandleConnection
```

Methods:

- <code title="post /v3/payments/handles/{handle}/connect">client.payment_handles.<a href="./src/linq/resources/payment_handles.py">connect</a>(handle) -> <a href="./src/linq/types/payment_handle_connection.py">PaymentHandleConnection</a></code>
- <code title="get /v3/payments/handles/{handle}/connection">client.payment_handles.<a href="./src/linq/resources/payment_handles.py">connection</a>(handle) -> <a href="./src/linq/types/payment_handle_connection.py">PaymentHandleConnection</a></code>
- <code title="delete /v3/payments/handles/{handle}/connection">client.payment_handles.<a href="./src/linq/resources/payment_handles.py">revoke</a>(handle) -> <a href="./src/linq/types/payment_handle_connection.py">PaymentHandleConnection</a></code>
- <code title="post /v3/payments/handles/{handle}/verify">client.payment_handles.<a href="./src/linq/resources/payment_handles.py">verify</a>(handle, \*\*<a href="src/linq/types/payment_handle_verify_params.py">params</a>) -> <a href="./src/linq/types/payment_handle_connection.py">PaymentHandleConnection</a></code>

# Payments

Types:

```python
from linq.types import Payment, PaymentCredentialsResponse
```

Methods:

- <code title="post /v3/payments">client.payments.<a href="./src/linq/resources/payments.py">create</a>(\*\*<a href="src/linq/types/payment_create_params.py">params</a>) -> <a href="./src/linq/types/payment.py">Payment</a></code>
- <code title="get /v3/payments/{paymentId}">client.payments.<a href="./src/linq/resources/payments.py">retrieve</a>(payment_id) -> <a href="./src/linq/types/payment.py">Payment</a></code>
- <code title="post /v3/payments/{paymentId}/cancel">client.payments.<a href="./src/linq/resources/payments.py">cancel</a>(payment_id) -> <a href="./src/linq/types/payment.py">Payment</a></code>
- <code title="get /v3/payments/{paymentId}/credentials">client.payments.<a href="./src/linq/resources/payments.py">credentials</a>(payment_id) -> <a href="./src/linq/types/payment_credentials_response.py">PaymentCredentialsResponse</a></code>

# Experiences

Types:

```python
from linq.types import ExperienceRetrieveResponse, ExperienceListResponse
```

Methods:

- <code title="get /v3/experiences/{experience}">client.experiences.<a href="./src/linq/resources/experiences.py">retrieve</a>(experience) -> <a href="./src/linq/types/experience_retrieve_response.py">ExperienceRetrieveResponse</a></code>
- <code title="get /v3/experiences">client.experiences.<a href="./src/linq/resources/experiences.py">list</a>() -> <a href="./src/linq/types/experience_list_response.py">ExperienceListResponse</a></code>

# WebhookEvents

Types:
Expand Down
Loading
Loading