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

Latest commit

 

History

History
135 lines (101 loc) · 3.88 KB

OmnimessageApi.md

File metadata and controls

135 lines (101 loc) · 3.88 KB

com.Messente.Omnichannel.Api.OmnimessageApi

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

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

CancelScheduledMessage

void CancelScheduledMessage (Guid? omnimessageId)

Cancels a scheduled Omnimessage

Example

using System;
using System.Diagnostics;
using com.Messente.Omnichannel.Api;
using com.Messente.Omnichannel.Client;
using com.Messente.Omnichannel.Model;

namespace Example
{
    public class CancelScheduledMessageExample
    {
        public static void Main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new OmnimessageApi();
            var omnimessageId = new Guid?(); // Guid? | UUID of the scheduled Omnimessage to be cancelled

            try
            {
                // Cancels a scheduled Omnimessage
                apiInstance.CancelScheduledMessage(omnimessageId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OmnimessageApi.CancelScheduledMessage: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
omnimessageId Guid? 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]

SendOmnimessage

OmniMessageCreateSuccessResponse SendOmnimessage (Omnimessage omnimessage)

Sends an Omnimessage

Example

using System;
using System.Diagnostics;
using com.Messente.Omnichannel.Api;
using com.Messente.Omnichannel.Client;
using com.Messente.Omnichannel.Model;

namespace Example
{
    public class SendOmnimessageExample
    {
        public static void Main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new OmnimessageApi();
            var omnimessage = new Omnimessage(); // Omnimessage | Omnimessage to be sent

            try
            {
                // Sends an Omnimessage
                OmniMessageCreateSuccessResponse result = apiInstance.SendOmnimessage(omnimessage);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OmnimessageApi.SendOmnimessage: " + e.Message );
            }
        }
    }
}

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]