Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Latest commit

 

History

History
115 lines (79 loc) · 3.38 KB

OmnimessageApi.md

File metadata and controls

115 lines (79 loc) · 3.38 KB

omnichannel.OmnimessageApi

All URIs are relative to https://api.messente.com/v1

Method HTTP request Description
cancel_scheduled_message DELETE /omnimessage/{omnimessage_id} Cancels a scheduled Omnimessage
send_omnimessage POST /omnimessage Sends an Omnimessage

cancel_scheduled_message

cancel_scheduled_message(omnimessage_id)

Cancels a scheduled Omnimessage

Example

  • Basic Authentication (basicAuth):
from __future__ import print_function
import time
import omnichannel
from omnichannel.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = omnichannel.OmnimessageApi(omnichannel.ApiClient(configuration))
omnimessage_id = 'omnimessage_id_example' # str | UUID of the scheduled Omnimessage to be cancelled

try:
    # Cancels a scheduled Omnimessage
    api_instance.cancel_scheduled_message(omnimessage_id)
except ApiException as e:
    print("Exception when calling OmnimessageApi->cancel_scheduled_message: %s\n" % e)

Parameters

Name Type Description Notes
omnimessage_id str UUID of the scheduled Omnimessage to be cancelled

Return type

void (empty response body)

Authorization

basicAuth

HTTP request headers

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

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

send_omnimessage

OmniMessageCreateSuccessResponse send_omnimessage(omnimessage)

Sends an Omnimessage

Example

  • Basic Authentication (basicAuth):
from __future__ import print_function
import time
import omnichannel
from omnichannel.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = omnichannel.OmnimessageApi(omnichannel.ApiClient(configuration))
omnimessage = omnichannel.Omnimessage() # Omnimessage | Omnimessage to be sent

try:
    # Sends an Omnimessage
    api_response = api_instance.send_omnimessage(omnimessage)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OmnimessageApi->send_omnimessage: %s\n" % e)

Parameters

Name Type Description Notes
omnimessage Omnimessage Omnimessage to be sent

Return type

OmniMessageCreateSuccessResponse

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]