Skip to content

Repository files navigation

clicksend-client

This is an official SDK for ClickSend Below you will find a current list of the available methods for clicksend. NOTE: You will need to create a free account to use the API. You can register here..

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 3.1
  • Package version: 1.0.0
  • Build package: io.clicksend.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

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:

importclicksend_client

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:

importclicksend_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ importprint_functionimporttimeimportclicksend_clientfromclicksend_client.restimportApiExceptionfrompprintimportpprint# Configure HTTP basic authorization: BasicAuthconfiguration=clicksend_client.Configuration()
configuration.username='YOUR_USERNAME'configuration.password='YOUR_PASSWORD'# create an instance of the API classapi_instance=clicksend_client.AccountApi(clicksend_client.ApiClient(configuration))
try:
# Get account informationapi_response=api_instance.account_get()
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling AccountApi->account_get: %s\n"%e)

Documentation for API Endpoints

All URIs are relative to https://rest.clicksend.com/v3

ClassMethodHTTP requestDescription
AccountApiaccount_getGET /accountGet account information
AccountApiaccount_postPOST /accountCreate a new account
AccountApiaccount_useage_by_subaccount_getGET /account/usage/{year}/{month}/subaccountGet account useage by subaccount
AccountApiaccount_verify_send_putPUT /account-verify/sendSend account activation token
AccountApiaccount_verify_verify_by_activation_token_putPUT /account-verify/verify/{activation_token}Verify new account
AccountApiforgot_password_putPUT /forgot-passwordForgot password
AccountApiforgot_password_verify_putPUT /forgot-password/verifyVerify forgot password
AccountApiforgot_username_putPUT /forgot-usernameForgot username
AccountRechargeApirecharge_credit_card_getGET /recharge/credit-cardGet Credit Card info
AccountRechargeApirecharge_credit_card_putPUT /recharge/credit-cardUpdate credit card info
AccountRechargeApirecharge_packages_getGET /recharge/packagesGet list of all packages
AccountRechargeApirecharge_purchase_by_package_id_putPUT /recharge/purchase/{package_id}Purchase a package
AccountRechargeApirecharge_transactions_by_transaction_id_getGET /recharge/transactions/{transaction_id}Get specific Transaction
AccountRechargeApirecharge_transactions_getGET /recharge/transactionsPurchase a package
ContactApilists_contacts_by_list_id_and_contact_id_deleteDELETE /lists/{list_id}/contacts/{contact_id}Delete a contact
ContactApilists_contacts_by_list_id_and_contact_id_getGET /lists/{list_id}/contacts/{contact_id}Get a specific contact
ContactApilists_contacts_by_list_id_and_contact_id_putPUT /lists/{list_id}/contacts/{contact_id}Update specific contact
ContactApilists_contacts_by_list_id_getGET /lists/{list_id}/contactsGet all contacts in a list
ContactApilists_contacts_by_list_id_postPOST /lists/{list_id}/contactsCreate new contact
ContactApilists_copy_contact_putPUT /lists/{from_list_id}/contacts/{contact_id}/copy/{to_list_id}Copy contact to another list
ContactApilists_remove_opted_out_contacts_by_list_id_and_opt_out_list_id_putPUT /lists/{list_id}/remove-opted-out-contacts/{opt_out_list_id}Remove all opted out contacts
ContactApilists_transfer_contact_putPUT /lists/{from_list_id}/contacts/{contact_id}/transfer/{to_list_id}Transfer contact to another list
ContactListApilists_by_list_id_deleteDELETE /lists/{list_id}ListsByListIdDelete
ContactListApilists_by_list_id_getGET /lists/{list_id}Get specific contact list
ContactListApilists_by_list_id_putPUT /lists/{list_id}Update specific contact list
ContactListApilists_getGET /listsGet all contact lists
ContactListApilists_import_by_list_id_postPOST /lists/{list_id}/importImport contacts to list
ContactListApilists_postPOST /listsCreate new contact list
ContactListApilists_remove_duplicates_by_list_id_putPUT /lists/{list_id}/remove-duplicatesRemove duplicate contacts
CountriesApicountries_getGET /countriesGet all country codes
DeliveryIssuesApidelivery_issues_getGET /delivery-issuesGet all delivery issues
DeliveryIssuesApidelivery_issues_postPOST /delivery-issuesCreate delivery Issue
DetectAddressApidetect_address_postPOST /post/letters/detect-addressDetects address in uploaded file.
EmailDeliveryReceiptRulesApiemail_delivery_receipt_automation_deleteDELETE /automations/email/receipts/{receipt_rule_id}Delete email delivery receipt automation
EmailDeliveryReceiptRulesApiemail_delivery_receipt_automation_getGET /automations/email/receipts/{receipt_rule_id}Get specific email delivery receipt automation
EmailDeliveryReceiptRulesApiemail_delivery_receipt_automation_postPOST /automations/email/receiptsCreate email delivery receipt automations
EmailDeliveryReceiptRulesApiemail_delivery_receipt_automation_putPUT /automations/email/receipts/{receipt_rule_id}Update email delivery receipt automation
EmailDeliveryReceiptRulesApiemail_delivery_receipt_automations_getGET /automations/email/receiptsGet all email delivery receipt automations
EmailMarketingApiallowed_email_address_getGET /email/addressesGet all email addresses
EmailMarketingApiallowed_email_address_postPOST /email/addressesCreate allowed Email Address
EmailMarketingApicancel_email_campaign_putPUT /email-campaigns/{email_campaign_id}/cancelCancel email campaign
EmailMarketingApiemail_campaign_getGET /email-campaigns/{email_campaign_id}Get specific email campaign
EmailMarketingApiemail_campaign_history_export_getGET /email-campaigns/{email_campaign_id}/history/exportExport specific email campaign history
EmailMarketingApiemail_campaign_history_getGET /email-campaigns/{email_campaign_id}/historyGet specific email campaign history
EmailMarketingApiemail_campaign_postPOST /email-campaigns/sendSend email campaign
EmailMarketingApiemail_campaign_price_postPOST /email-campaigns/priceCalculate email campaign price
EmailMarketingApiemail_campaign_putPUT /email-campaigns/{email_campaign_id}Edit email campaign
EmailMarketingApiemail_campaigns_getGET /email-campaignsGet all email campaigns
EmailMarketingApisend_verification_token_getPUT /email/address-verify/{email_address_id}/sendSend verification token
EmailMarketingApispecific_allowed_email_address_deleteDELETE /email/addresses/{email_address_id}Delete specific email address
EmailMarketingApispecific_allowed_email_address_getGET /email/addresses/{email_address_id}Get specific email address
EmailMarketingApiverify_allowed_email_address_getPUT /email/address-verify/{email_address_id}/verify/{activation_token}Verify email address using verification token
EmailToSmsApisms_email_sms_getGET /sms/email-smsGet list of email to sms allowed addresses
EmailToSmsApisms_email_sms_postPOST /sms/email-smsCreate email to sms allowed address
EmailToSmsApisms_email_sms_stripped_string_deleteDELETE /sms/email-sms-stripped-strings/{rule_id}Delete email to sms stripped string rule
EmailToSmsApisms_email_sms_stripped_string_getGET /sms/email-sms-stripped-strings/{rule_id}Get email to sms stripped string rule
EmailToSmsApisms_email_sms_stripped_string_postPOST /sms/email-sms-stripped-stringsCreate email to sms stripped string rule
EmailToSmsApisms_email_sms_stripped_string_putPUT /sms/email-sms-stripped-strings/{rule_id}Update email to sms stripped string rule
EmailToSmsApisms_email_sms_stripped_strings_getGET /sms/email-sms-stripped-stringsGet list of email to sms stripped string rules
FAXApifax_history_getGET /fax/historyGet a list of Fax History.
FAXApifax_price_postPOST /fax/priceCalculate Total Price for Fax Messages sent
FAXApifax_receipts_by_message_id_getGET /fax/receipts/{message_id}Get a single fax receipt based on message id.
FAXApifax_receipts_getGET /fax/receiptsGet all delivery receipts
FAXApifax_receipts_postPOST /fax/receiptsAdd a delivery receipt
FAXApifax_receipts_read_putPUT /fax/receipts-readMark delivery receipts as read
FAXApifax_send_postPOST /fax/sendSend a fax using supplied supported file-types.
FAXDeliveryReceiptRulesApifax_delivery_receipt_automation_deleteDELETE /automations/fax/receipts/{receipt_rule_id}Delete fax delivery receipt automation
FAXDeliveryReceiptRulesApifax_delivery_receipt_automation_getGET /automations/fax/receipts/{receipt_rule_id}Get specific fax delivery receipt automation
FAXDeliveryReceiptRulesApifax_delivery_receipt_automation_postPOST /automations/fax/receiptsCreate fax delivery receipt automations
FAXDeliveryReceiptRulesApifax_delivery_receipt_automation_putPUT /automations/fax/receipts/{receipt_rule_id}Update fax delivery receipt automation
FAXDeliveryReceiptRulesApifax_delivery_receipt_automations_getGET /automations/fax/receiptsGet all fax delivery receipt automations
GlobalSendingApilist_countries_getGET /country-listList of countries
GlobalSendingApiuser_countries_agree_postPOST /user-countries/agreeAgree to rules and regulation
GlobalSendingApiuser_countries_getGET /user-countriesGet Countries for Global Sending
GlobalSendingApiuser_countries_postPOST /user-countriesSelect Countries for Global Sending
InboundFAXRulesApifax_inbound_automation_deleteDELETE /automations/fax/inbound/{inbound_rule_id}Delete inbound fax automation
InboundFAXRulesApifax_inbound_automation_getGET /automations/fax/inbound/{inbound_rule_id}Get specific inbound fax automation
InboundFAXRulesApifax_inbound_automation_postPOST /automations/fax/inboundCreate new inbound fax automation
InboundFAXRulesApifax_inbound_automation_putPUT /automations/fax/inbound/{inbound_rule_id}Update inbound fax automation
InboundFAXRulesApifax_inbound_automations_getGET /automations/fax/inboundGet all inbound fax automations
InboundSMSRulesApisms_inbound_automation_deleteDELETE /automations/sms/inbound/{inbound_rule_id}Delete inbound sms automation
InboundSMSRulesApisms_inbound_automation_getGET /automations/sms/inbound/{inbound_rule_id}Get specific inbound sms automation
InboundSMSRulesApisms_inbound_automation_postPOST /automations/sms/inboundCreate new inbound sms automation
InboundSMSRulesApisms_inbound_automation_putPUT /automations/sms/inbound/{inbound_rule_id}Update inbound sms automation
InboundSMSRulesApisms_inbound_automations_getGET /automations/sms/inboundGet all inbound sms automations
MMSApimms_history_export_getGET /mms/history/exportExport all mms history
MMSApimms_history_getGET /mms/historyGet all mms history
MMSApimms_price_postPOST /mms/priceGet Price for MMS sent
MMSApimms_receipts_getGET /mms/receiptsGet all delivery receipts
MMSApimms_receipts_read_putPUT /mms/receipts-readMark delivery receipts as read
MMSApimms_send_postPOST /mms/sendSend MMS
MasterEmailTemplatesApimaster_email_template_categories_getGET /email/master-templates-categoriesGet all master email template categories
MasterEmailTemplatesApimaster_email_template_category_getGET /email/master-templates-categories/{category_id}Get specific master email template category
MasterEmailTemplatesApimaster_email_template_getGET /email/master-templates/{template_id}Get specific master email template
MasterEmailTemplatesApimaster_email_templates_getGET /email/master-templatesGet all master email templates
MasterEmailTemplatesApimaster_email_templates_in_category_getGET /email/master-templates-categories/{category_id}/master-templatesGet all master email templates in a category
MmsCampaignApimms_campaign_by_mms_campaign_id_getGET /mms-campaigns/{mms_campaign_id}Get specific mms campaign
MmsCampaignApimms_campaigns_by_mms_campaign_id_putPUT /mms-campaigns/{mms_campaign_id}Update mms campaign
MmsCampaignApimms_campaigns_cancel_by_mms_campaign_id_putPUT /mms-campaigns/{mms_campaign_id}/cancelCancel mms campaign
MmsCampaignApimms_campaigns_getGET /mms-campaignsGet list of mms campaigns
MmsCampaignApimms_campaigns_price_postPOST /mms-campaigns/priceCalculate price for mms campaign
MmsCampaignApimms_campaigns_send_postPOST /mms-campaigns/sendCreate mms campaign
NumberApinumbers_buy_by_dedicated_number_postPOST /numbers/buy/{dedicated_number}Buy dedicated number
NumberApinumbers_getGET /numbersGet all availible dedicated numbers
NumberApinumbers_search_by_country_getGET /numbers/search/{country}Get all dedicated numbers by country
PostLetterApipost_letters_export_getGET /post/letters/history/exportexport post letter history
PostLetterApipost_letters_history_getGET /post/letters/historyGet all post letter history
PostLetterApipost_letters_price_postPOST /post/letters/priceCalculate post letter price
PostLetterApipost_letters_send_postPOST /post/letters/sendSend post letter
PostPostcardApipost_postcards_history_export_getGET /post/postcards/history/exportExport postcard history to a CSV file
PostPostcardApipost_postcards_history_getGET /post/postcards/historyRetrieve the history of postcards sent or scheduled
PostPostcardApipost_postcards_price_postPOST /post/postcards/priceCalculate price for sending one or more postcards
PostPostcardApipost_postcards_send_postPOST /post/postcards/sendSend one or more postcards
PostReturnAddressApipost_return_addresses_by_return_address_id_deleteDELETE /post/return-addresses/{return_address_id}Delete specific post return address
PostReturnAddressApipost_return_addresses_by_return_address_id_getGET /post/return-addresses/{return_address_id}Get specific post return address
PostReturnAddressApipost_return_addresses_by_return_address_id_putPUT /post/return-addresses/{return_address_id}Update post return address
PostReturnAddressApipost_return_addresses_getGET /post/return-addressesGet list of post return addresses
PostReturnAddressApipost_return_addresses_postPOST /post/return-addressesCreate post return address
ReferralAccountApireferral_accounts_getGET /referral/accountsGet all referral accounts
ResellerAccountApireseller_accounts_by_client_user_id_getGET /reseller/accounts/{client_user_id}Get Reseller clients Account
ResellerAccountApireseller_accounts_by_client_user_id_putPUT /reseller/accounts/{client_user_id}Update Reseller clients Account
ResellerAccountApireseller_accounts_getGET /reseller/accountsGet list of reseller accounts
ResellerAccountApireseller_accounts_postPOST /reseller/accountsCreate reseller account
SMSApisms_cancel_all_putPUT /sms/cancel-allUpdate all scheduled message as cancelled
SMSApisms_cancel_by_message_id_putPUT /sms/{message_id}/cancelUpdate scheduled message as cancelled
SMSApisms_history_export_getGET /sms/history/exportExport all sms history
SMSApisms_history_getGET /sms/historyGet all sms history
SMSApisms_inbound_getGET /sms/inboundGet all inbound sms
SMSApisms_inbound_postPOST /sms/inboundCreate inbound sms
SMSApisms_inbound_read_by_message_id_putPUT /sms/inbound-read/{message_id}Mark inbound SMS as read
SMSApisms_inbound_read_putPUT /sms/inbound-readMark inbound SMS as read
SMSApisms_price_postPOST /sms/priceCalculate sms price
SMSApisms_receipts_by_message_id_getGET /sms/receipts/{message_id}Get a Specific Delivery Receipt
SMSApisms_receipts_getGET /sms/receiptsGet all delivery receipts
SMSApisms_receipts_postPOST /sms/receiptsAdd a delivery receipt
SMSApisms_receipts_read_putPUT /sms/receipts-readMark delivery receipts as read
SMSApisms_send_postPOST /sms/sendSend sms message(s)
SMSApisms_templates_by_template_id_deleteDELETE /sms/templates/{template_id}Delete sms template
SMSApisms_templates_by_template_id_putPUT /sms/templates/{template_id}Update sms template
SMSApisms_templates_getGET /sms/templatesGet lists of all sms templates
SMSApisms_templates_postPOST /sms/templatesCreate sms template
SMSDeliveryReceiptRulesApisms_delivery_receipt_automation_deleteDELETE /automations/sms/receipts/{receipt_rule_id}Delete sms delivery receipt automation
SMSDeliveryReceiptRulesApisms_delivery_receipt_automation_getGET /automations/sms/receipts/{receipt_rule_id}Get specific sms delivery receipt automation
SMSDeliveryReceiptRulesApisms_delivery_receipt_automation_postPOST /automations/sms/receiptsCreate sms delivery receipt automations
SMSDeliveryReceiptRulesApisms_delivery_receipt_automation_putPUT /automations/sms/receipts/{receipt_rule_id}Update sms delivery receipt automation
SMSDeliveryReceiptRulesApisms_delivery_receipt_automations_getGET /automations/sms/receiptsGet all sms delivery receipt automations
SearchApisearch_contacts_lists_getGET /search/contacts-listsGet list of searched contact list
SmsCampaignApisms_campaign_by_sms_campaign_id_getGET /sms-campaigns/{sms_campaign_id}Get specific sms campaign
SmsCampaignApisms_campaigns_by_sms_campaign_id_putPUT /sms-campaigns/{sms_campaign_id}Update sms campaign
SmsCampaignApisms_campaigns_cancel_by_sms_campaign_id_putPUT /sms-campaigns/{sms_campaign_id}/cancelCancel sms campaign
SmsCampaignApisms_campaigns_getGET /sms-campaignsGet list of sms campaigns
SmsCampaignApisms_campaigns_price_postPOST /sms-campaigns/priceCalculate price for sms campaign
SmsCampaignApisms_campaigns_send_postPOST /sms-campaigns/sendCreate sms campaign
StatisticsApistatistics_sms_getGET /statistics/smsGet sms statistics
StatisticsApistatistics_voice_getGET /statistics/voiceGet voice statistics
SubaccountApisubaccounts_by_subaccount_id_deleteDELETE /subaccounts/{subaccount_id}Delete a subaccount
SubaccountApisubaccounts_by_subaccount_id_getGET /subaccounts/{subaccount_id}Get specific subaccount
SubaccountApisubaccounts_by_subaccount_id_putPUT /subaccounts/{subaccount_id}Update subaccount
SubaccountApisubaccounts_getGET /subaccountsGet all subaccounts
SubaccountApisubaccounts_postPOST /subaccountsCreate new subaccount
SubaccountApisubaccounts_regen_api_key_by_subaccount_id_putPUT /subaccounts/{subaccount_id}/regen-api-keyRegenerate an API Key
TimezonesApitimezones_getGET /timezonesGet supported list of timezones.
TransactionalEmailApiemail_history_export_getGET /email/history/exportExport all Transactional Email history
TransactionalEmailApiemail_history_getGET /email/historyGet all transactional email history
TransactionalEmailApiemail_price_postPOST /email/priceGet transactional email price
TransactionalEmailApiemail_send_postPOST /email/sendSend transactional email
TransferCreditApireseller_transfer_credit_putPUT /reseller/transfer-creditTransfer Credit
UploadApiuploads_postPOST /uploadsUpload File
UserEmailTemplatesApiemail_template_deleteDELETE /email/templates/{template_id}Delete user email template
UserEmailTemplatesApiemail_template_getGET /email/templates/{template_id}Get specific user email template
UserEmailTemplatesApiemail_template_postPOST /email/templatesCreate email template
UserEmailTemplatesApiemail_template_putPUT /email/templates/{template_id}Update email template
UserEmailTemplatesApiemail_templates_getGET /email/templatesGet all user email templates
VoiceApivoice_cancel_all_putPUT /voice/cancel-allUpdate all voice messages as cancelled
VoiceApivoice_cancel_by_message_id_putPUT /voice/{message_id}/cancelUpdate voice message status as cancelled
VoiceApivoice_history_export_getGET /voice/history/exportExport voice history
VoiceApivoice_history_getGET /voice/historyGet all voice history
VoiceApivoice_lang_getGET /voice/langGet all voice languages
VoiceApivoice_price_postPOST /voice/priceCalculate voice price
VoiceApivoice_receipts_getGET /voice/receiptsGet all delivery receipts
VoiceApivoice_receipts_postPOST /voice/receiptsAdd a delivery receipt
VoiceApivoice_receipts_read_putPUT /voice/receipts-readMark delivery receipts as read
VoiceApivoice_send_postPOST /voice/sendSend voice message(s)
VoiceDeliveryReceiptRulesApivoice_delivery_receipt_automation_deleteDELETE /automations/voice/receipts/{receipt_rule_id}Delete voice delivery receipt automation
VoiceDeliveryReceiptRulesApivoice_delivery_receipt_automation_getGET /automations/voice/receipts/{receipt_rule_id}Get specific voice delivery receipt automation
VoiceDeliveryReceiptRulesApivoice_delivery_receipt_automation_postPOST /automations/voice/receiptsCreate voice delivery receipt automations
VoiceDeliveryReceiptRulesApivoice_delivery_receipt_automation_putPUT /automations/voice/receipts/{receipt_rule_id}Update voice delivery receipt automation
VoiceDeliveryReceiptRulesApivoice_delivery_receipt_automations_getGET /automations/voice/receiptsGet all voice delivery receipt automations

Documentation For Models

Documentation For Authorization

BasicAuth

  • Type: HTTP basic authentication

Author

support@clicksend.com

About

ClickSend Python SDK

Resources

Stars

9 stars

Watchers

13 watching

Forks

Releases

Packages

Used by

Contributors

Languages