Getting Started with Anyreach API
Introduction
REST API for the Anyreach platform.
Every endpoint is scoped to one organization. Authenticate with a bearer token and, if your token can reach more than one organization, name the one you mean with the X-Anyreach-Org header. See Authentication.
This reference is generated from the running service, so the request and response shapes here are the ones the API actually enforces.
Install the Package
The package is compatible with Python versions 3.7+.
Install the package from PyPi using the following pip command:
pip install areach-apimatic-sdk==0.0.1
You can also view the package at: https://pypi.python.org/pypi/areach-apimatic-sdk/0.0.1
Test the SDK
You can test the generated SDK and the server with test cases. unittest is used as the testing framework and pytest is used as the test runner. You can run the tests as follows:
Navigate to the root directory of the SDK and run the following commands
pip install -r test-requirements.txt pytest
Initialize the API Client
Note: Documentation for the client can be found here.
The following parameters are configurable for the API Client:
| Parameter | Type | Description |
|---|---|---|
| http_client_instance | Union[Session, HttpClientProvider] |
The Http Client passed from the sdk user for making requests |
| override_http_client_configuration | bool |
The value which determines to override properties of the passed Http Client from the sdk user |
| http_call_back | HttpCallBack |
The callback value that is invoked before and after an HTTP call is made to an endpoint |
| timeout | float |
The value to use for connection timeout. Default: 60 |
| max_retries | int |
The number of times to retry an endpoint call if it fails. Default: 0 |
| backoff_factor | float |
A backoff factor to apply between attempts after the second try. Default: 2 |
| retry_statuses | Array of int |
The http statuses on which retry is to be done. Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524, 408, 413, 429, 500, 502, 503, 504, 521, 522, 524] |
| retry_methods | Array of string |
The http methods on which retry is to be done. Default: ["GET", "PUT", "GET", "PUT"] |
| proxy_settings | ProxySettings |
Optional proxy configuration to route HTTP requests through a proxy server. |
| bearer_auth_credentials | BearerAuthCredentials |
The credential object for OAuth 2 Bearer token |
The API client can be initialized as follows:
Code-Based Client Initialization
from anyreachapi.anyreachapi_client import AnyreachapiClient
from anyreachapi.configuration import Environment
from anyreachapi.http.auth.o_auth_2 import BearerAuthCredentials
client = AnyreachapiClient(
bearer_auth_credentials=BearerAuthCredentials(
access_token='AccessToken'
),
environment=Environment.PRODUCTION
)
Environment-Based Client Initialization
from anyreachapi.anyreachapi_client import AnyreachapiClient
# Specify the path to your .env file if it’s located outside the project’s root directory.
client = AnyreachapiClient.from_environment(dotenv_path='/path/to/.env')
See the Environment-Based Client Initialization section for details.
Authorization
This API uses the following authentication schemes.
List of APIs
- Conversationattachments
- Conversationevents
- Knowledgebases
- Knowledgebasesources
- Phonenumbers
- Inboundrouting
- Agentassist
- Humanhandoff
- Emaildomains
- Emailaddresses
- Webwidgets
- Campaigncontacts
- Campaignconfigurations
- Campaignstats
- Customdata
- Evaluationruns
- Workflowtriggers
- Workflowexecutions
- Workflowcredentials
- Agents
- Conversations
- Sources
- Trunks
- Unsubscribes
- Campaigns
- Metrics
- Evaluations
- Workflows
SDK Infrastructure
Configuration
HTTP
Utilities
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file areach_apimatic_sdk-0.0.1.tar.gz.
File metadata
- Download URL: areach_apimatic_sdk-0.0.1.tar.gz
- Upload date:
- Size: 287.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.4.3 CPython/3.13.15 Linux/6.1.158.2-microsoft-standard
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5096e2c610f64604af8a129ff2ee1f2c488e73700fa23389f442607f8d4d6a5b
|
|
| MD5 |
3e854f66961da9bb8aa25b9ba6cfba06
|
|
| BLAKE2b-256 |
935ab54e7009d6e89385b952e7305636955303d0d5d8086a68821c41a5460e85
|
File details
Details for the file areach_apimatic_sdk-0.0.1-py3-none-any.whl.
File metadata
- Download URL: areach_apimatic_sdk-0.0.1-py3-none-any.whl
- Upload date:
- Size: 781.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.4.3 CPython/3.13.15 Linux/6.1.158.2-microsoft-standard
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caf2345a2588da2c50daab3d22a3de0e1b9daa6572a6740c1c2600fd4d73b0d4
|
|
| MD5 |
34f80fe2872610d2803209938a4eba4b
|
|
| BLAKE2b-256 |
f18d27979519d2fc88054172a7a610cf7b98144d62369d7684a6555325c8cc39
|