Callchimp Python SDK
Project description
callchimp
Introduction👋
Introducing OpenAPI spec for doing almost anything in callchimp.ai. CallChimp is a Gen AI Call Center Enhancing telecommunication with GPT-driven bulk calling. It is scalable, user-friendly, and customizable. Optimized for seamless integration and usability.
API Categories📋
The APIs are divided in 9 categories listed below:
- Campaigns
- Supervisors
- Lists
- Subscribers
- Calls
- Phone Numbers
- Webhooks
- Scripts
- Voices
API Operations✅
Campaign Operations
- List Campaigns
- Create a Campaign
- Get Campaign by Id
- Delete Campaign by Id
- Update Campaign by Id
- Add Supervisors to Campaign by Id
- Remove Supervisors from Campaign by Id
- Upload audio file to Campaign by Id
- Search Campaign by Name or Id
Supervisor Operations
- List Supervisors
- Create a Supervisor
- Get Supervisor by Id
- Delete Supervisor by Id
- Update Supervisor by Id
- Send OTP to Supervisor by Id
- Verify Supervisor OTP by Id
List Operations
- List Lists
- Create a List
- Get List by Id
- Delete List by Id
- Update List by Id
- Search List by Name or Id
- Create Campaign with Default List
Subscriber Operations
- List Subscribers
- Create one or more Subscriber(s)
- Get Subscriber by Id
- Delete Subscriber by Id
- Update Subscriber by Id
- Get Subscriber by Vendor Lead Code
- Delete Subscriber by Vendor Lead Code
- Update Subscriber by Vendor Lead Code
Call Operations
- List Calls
- Create a Call
- Get Call by Id
- List Supervisor Inbound Calls
- Generate Call Reports
Phone Number Operations
- List Phone Numbers
Webhook Operations
- List Webhooks
- Create a Webhook
- Get Webhook by Id
- Delete Webhook by Id
- Update Webhook by Id
Script Operations
- List Scripts
- Create a Script
- Get Script by Id
- Delete Script by Id
- Update Script by Id
Voice Operations
- List Available Voices
Authentication🔐
Callchimp public API offers authentication with API Keys. All endpoints accepts a header named x-api-key
. To get started follow the below steps:
- Login to callchimp dashboard.
- Click on your profile on the top-right corner.
- Click on Settings.
- On the settings page, click on
API Keys
tab. - Click on
Create
button, add a name and an expiry date and click onAdd
. - An API Key will be generated, please save the key somewhere safe as it won't be shown again!
- You can use the API Key directly here in this playground to test out the APIs.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 0.1.4
- Generator version: 7.6.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.7+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import callchimp
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import callchimp
Tests
Execute pytest
to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import callchimp
from callchimp.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.callchimp.ai/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = callchimp.Configuration(
host = "https://api.callchimp.ai/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: x-api-key
configuration.api_key['x-api-key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-api-key'] = 'Bearer'
# Enter a context with an instance of the API client
with callchimp.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = callchimp.CallsApi(api_client)
id = 56 # int | Numeric call id to get
try:
# Get Call by Id
api_response = api_instance.calls_get(id)
print("The response of CallsApi->calls_get:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling CallsApi->calls_get: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://api.callchimp.ai/v1
Class | Method | HTTP request | Description |
---|---|---|---|
CallsApi | calls_get | GET /calls/{Id} | Get Call by Id |
CallsApi | calls_list_inbound | GET /calls/inbound | List Supervisor Inbound Calls |
CallsApi | calls_list_outbound | GET /calls | List Calls |
CallsApi | calls_post | POST /calls | Create a Call |
CallsApi | calls_reports | POST /calls/reports | Generate Call Reports |
CampaignsApi | campaigns_addsuper | POST /campaigns/{Id}/add_super | Add Supervisors to Campaign by Id |
CampaignsApi | campaigns_delete | DELETE /campaigns/{Id} | Delete Campaign by Id |
CampaignsApi | campaigns_find | POST /campaigns/find | Search Campaign by Name or Id |
CampaignsApi | campaigns_get | GET /campaigns/{Id} | Get Campaign by Id |
CampaignsApi | campaigns_list | GET /campaigns | List campaigns |
CampaignsApi | campaigns_post | POST /campaigns | Create a Campaign |
CampaignsApi | campaigns_removesuper | POST /campaigns/{Id}/remove_super | Remove Supervisors from Campaign by Id |
CampaignsApi | campaigns_update | PATCH /campaigns/{Id} | Update Campaign by Id |
CampaignsApi | campaigns_uploadblast | PATCH /campaigns/{Id}/upload_blast_file | Upload audio file to Campaign by Id |
ListsApi | lists_create_campaign_and_list | POST /lists/create_campaign_and_list | Create Campaign with Default List |
ListsApi | lists_delete | DELETE /lists/{Id} | Delete List by Id |
ListsApi | lists_find | POST /lists/find | Search List by Name or Id |
ListsApi | lists_get | GET /lists/{Id} | Get List by Id |
ListsApi | lists_list | GET /lists | List Lists |
ListsApi | lists_post | POST /lists | Create a List |
ListsApi | lists_update | PATCH /lists/{Id} | Update List by Id |
PhoneNumbersApi | phone_numbers_list | GET /phone_numbers | List Phone Numbers |
ScriptsApi | scripts_delete | DELETE /scripts/{Id} | Delete Script by Id |
ScriptsApi | scripts_get | GET /scripts/{Id} | Get Script by Id |
ScriptsApi | scripts_list | GET /scripts | List Script |
ScriptsApi | scripts_post | POST /scripts | Create a Script |
ScriptsApi | scripts_update | PATCH /scripts/{Id} | Update Script by Id |
SubscribersApi | subscribers_delete | DELETE /subscribers/{Id} | Delete Subscriber by Id |
SubscribersApi | subscribers_get | GET /subscribers/{Id} | Get Subscriber by Id |
SubscribersApi | subscribers_list | GET /subscribers | List Subscribers |
SubscribersApi | subscribers_post | POST /subscribers | Create one or more Subscriber(s) |
SubscribersApi | subscribers_update | PATCH /subscribers/{Id} | Update Subscriber by Id |
SubscribersApi | subscribers_vendor_delete | DELETE /subscribers/vendor/{vendor_lead_code} | Delete Subscriber by Vendor Lead Code |
SubscribersApi | subscribers_vendor_get | GET /subscribers/vendor/{vendor_lead_code} | Get Subscriber by Vendor Lead Code |
SubscribersApi | subscribers_vendor_update | PATCH /subscribers/vendor/{vendor_lead_code} | Update Subscriber by Vendor Lead Code |
SupervisorsApi | supervisors_delete | DELETE /supervisors/{Id} | Delete Supervisor by Id |
SupervisorsApi | supervisors_get | GET /supervisors/{Id} | Get Supervisor by Id |
SupervisorsApi | supervisors_list | GET /supervisors | List Supervisors |
SupervisorsApi | supervisors_post | POST /supervisors | Create a Supervisor |
SupervisorsApi | supervisors_sendotp | POST /supervisors/{Id}/send_otp | Send OTP to Supervisor by Id |
SupervisorsApi | supervisors_update | PATCH /supervisors/{Id} | Update Supervisor by Id |
SupervisorsApi | supervisors_verifyotp | POST /supervisors/{Id}/verify_otp | Verify Supervisor OTP by Id |
VoicesApi | voices_list | GET /voices | List Available Voices |
WebhooksApi | webhooks_delete | DELETE /webhooks/{Id} | Delete Webhook by Id |
WebhooksApi | webhooks_get | GET /webhooks/{Id} | Get Webhook by Id |
WebhooksApi | webhooks_list | GET /webhooks | List Webhooks |
WebhooksApi | webhooks_post | POST /webhooks | Create a Webhook |
WebhooksApi | webhooks_update | PATCH /webhooks/{Id} | Update Webhook by Id |
Documentation For Models
- CallListResponse
- CallReportRequest
- CallReportResponse
- CallReportResponseAnsweredCalls
- CallReportResponseStatsInner
- CallRequestByLeadId
- CallRequestByVendorLeadCode
- CallResponse
- CallsPostRequest
- CampaignAddSuperRequest
- CampaignAddSuperResponse
- CampaignFindRequest
- CampaignListResponse
- CampaignListsRequest
- CampaignRemoveSuperRequest
- CampaignRemoveSuperResponse
- CampaignRequest
- CampaignResponse
- CampaignUpdateRequest
- CampaignUploadAudioResponse
- InboundCallListResponse
- InboundCallResponse
- InboundCallResponseCallchimpNumber
- InboundCallResponseSupervisor
- ListFindRequest
- ListsListResponse
- ListsRequest
- ListsResponse
- Model4XXResponse
- Model4XXResponseErrorsInner
- PhoneNumberListResponse
- PhoneNumberResponse
- ScriptListResponse
- ScriptRequest
- ScriptResponse
- SubscriberListResponse
- SubscriberRequest
- SubscriberResponse
- SubscriberUpdateRequest
- SubscribersPost200Response
- SubscribersPostRequest
- SupervisorListResponse
- SupervisorRequest
- SupervisorResponse
- SupervisorSendOtpResponse
- SupervisorVerifyOtpRequest
- SupervisorVerifyOtpResponse
- TransactionCallRequestByLeadId
- VoiceResponse
- WebhookListResponse
- WebhookRequest
- WebhookResponse
Documentation For Authorization
Authentication schemes defined for the API:
x-api-key
- Type: API key
- API key parameter name: x-api-key
- Location: HTTP header
Author
Dynopii Inc.
Project details
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
File details
Details for the file callchimp-0.1.4.tar.gz
.
File metadata
- Download URL: callchimp-0.1.4.tar.gz
- Upload date:
- Size: 75.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16a003078c8e8908a783a7ed11bdb95a0ee090f6524262773061a3ac01c2d032 |
|
MD5 | 7bf78ab299c0fd1c5aeffa1b4a908702 |
|
BLAKE2b-256 | 413af6e50b77626be063ac7768c24cdfe39e7a3f36a18bdcf5391540adccfdb0 |
File details
Details for the file callchimp-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: callchimp-0.1.4-py3-none-any.whl
- Upload date:
- Size: 185.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0ddc9beadd56c5f9b602139563c827739b6c420ebc699d5608a99368e677a1e |
|
MD5 | d091b02ca7981981b95a3285d9159387 |
|
BLAKE2b-256 | a023ecaad1befc9e308e07b4646dd0e57e6e9c0a7c253fb8cf17acb8f285c318 |