Skip to content

Latest commit

 

History

History
284 lines (200 loc) · 9.61 KB

File metadata and controls

284 lines (200 loc) · 9.61 KB

clicksend_client.VoiceDeliveryReceiptRulesApi

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

Method HTTP request Description
voice_delivery_receipt_automation_delete DELETE /automations/voice/receipts/{receipt_rule_id} Delete voice delivery receipt automation
voice_delivery_receipt_automation_get GET /automations/voice/receipts/{receipt_rule_id} Get specific voice delivery receipt automation
voice_delivery_receipt_automation_post POST /automations/voice/receipts Create voice delivery receipt automations
voice_delivery_receipt_automation_put PUT /automations/voice/receipts/{receipt_rule_id} Update voice delivery receipt automation
voice_delivery_receipt_automations_get GET /automations/voice/receipts Get all voice delivery receipt automations

voice_delivery_receipt_automation_delete

str voice_delivery_receipt_automation_delete(receipt_rule_id)

Delete voice delivery receipt automation

Delete voice delivery receipt automation

Example

from __future__ import print_function
import time
import clicksend_client
from clicksend_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuth
configuration = clicksend_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = clicksend_client.VoiceDeliveryReceiptRulesApi(clicksend_client.ApiClient(configuration))
receipt_rule_id = 56 # int | Receipt rule id

try:
    # Delete voice delivery receipt automation
    api_response = api_instance.voice_delivery_receipt_automation_delete(receipt_rule_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VoiceDeliveryReceiptRulesApi->voice_delivery_receipt_automation_delete: %s\n" % e)

Parameters

Name Type Description Notes
receipt_rule_id int Receipt rule id

Return type

str

Authorization

BasicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

voice_delivery_receipt_automation_get

str voice_delivery_receipt_automation_get(receipt_rule_id)

Get specific voice delivery receipt automation

Get specific voice delivery receipt automation

Example

from __future__ import print_function
import time
import clicksend_client
from clicksend_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuth
configuration = clicksend_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = clicksend_client.VoiceDeliveryReceiptRulesApi(clicksend_client.ApiClient(configuration))
receipt_rule_id = 56 # int | Receipt rule id

try:
    # Get specific voice delivery receipt automation
    api_response = api_instance.voice_delivery_receipt_automation_get(receipt_rule_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VoiceDeliveryReceiptRulesApi->voice_delivery_receipt_automation_get: %s\n" % e)

Parameters

Name Type Description Notes
receipt_rule_id int Receipt rule id

Return type

str

Authorization

BasicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

voice_delivery_receipt_automation_post

str voice_delivery_receipt_automation_post(delivery_receipt_rule)

Create voice delivery receipt automations

Create voice delivery receipt automations

Example

from __future__ import print_function
import time
import clicksend_client
from clicksend_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuth
configuration = clicksend_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = clicksend_client.VoiceDeliveryReceiptRulesApi(clicksend_client.ApiClient(configuration))
delivery_receipt_rule = clicksend_client.DeliveryReceiptRule() # DeliveryReceiptRule | voice delivery receipt rule model

try:
    # Create voice delivery receipt automations
    api_response = api_instance.voice_delivery_receipt_automation_post(delivery_receipt_rule)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VoiceDeliveryReceiptRulesApi->voice_delivery_receipt_automation_post: %s\n" % e)

Parameters

Name Type Description Notes
delivery_receipt_rule DeliveryReceiptRule voice delivery receipt rule model

Return type

str

Authorization

BasicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

voice_delivery_receipt_automation_put

str voice_delivery_receipt_automation_put(receipt_rule_id, delivery_receipt_rule)

Update voice delivery receipt automation

Update voice delivery receipt automation

Example

from __future__ import print_function
import time
import clicksend_client
from clicksend_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuth
configuration = clicksend_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = clicksend_client.VoiceDeliveryReceiptRulesApi(clicksend_client.ApiClient(configuration))
receipt_rule_id = 56 # int | Receipt rule id
delivery_receipt_rule = clicksend_client.DeliveryReceiptRule() # DeliveryReceiptRule | Delivery receipt rule model

try:
    # Update voice delivery receipt automation
    api_response = api_instance.voice_delivery_receipt_automation_put(receipt_rule_id, delivery_receipt_rule)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VoiceDeliveryReceiptRulesApi->voice_delivery_receipt_automation_put: %s\n" % e)

Parameters

Name Type Description Notes
receipt_rule_id int Receipt rule id
delivery_receipt_rule DeliveryReceiptRule Delivery receipt rule model

Return type

str

Authorization

BasicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

voice_delivery_receipt_automations_get

str voice_delivery_receipt_automations_get(q=q, page=page, limit=limit)

Get all voice delivery receipt automations

Get all voice delivery receipt automations

Example

from __future__ import print_function
import time
import clicksend_client
from clicksend_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuth
configuration = clicksend_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = clicksend_client.VoiceDeliveryReceiptRulesApi(clicksend_client.ApiClient(configuration))
q = 'q_example' # str | Your keyword or query. (optional)
page = 1 # int | Page number (optional) (default to 1)
limit = 10 # int | Number of records per page (optional) (default to 10)

try:
    # Get all voice delivery receipt automations
    api_response = api_instance.voice_delivery_receipt_automations_get(q=q, page=page, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VoiceDeliveryReceiptRulesApi->voice_delivery_receipt_automations_get: %s\n" % e)

Parameters

Name Type Description Notes
q str Your keyword or query. [optional]
page int Page number [optional] [default to 1]
limit int Number of records per page [optional] [default to 10]

Return type

str

Authorization

BasicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]