CallFire Solutions

Control Broadcast

Follow

CONTROL BROADCAST

Starts, Stops or Archives a Broadcast

You can use this operation to START, STOP, or ARCHIVE a Broadcast. It also allows changing the maximum active count of a Broadcast.

REQUEST PARAMETERS

ParameterDemo ValueDescriptionData Type
ControlBroadcast     object
Id Unique ID of resource long
RequestId   anyURI
Command [START, STOP, ARCHIVE] BroadcastCommand
MaxActive Max simultaneous calls int

EXAMPLE

Setup and send Request


using RestSharp;

namespace [your-namespace]
{
    public class [your-class]
    {
        public string ControlBroadcast()
        {
            long broadcastId = 18; //Your Broadcast Id here

            var client = new RestClient("https://www.callfire.com/api/1.1/rest/");
            client.Authenticator = new HttpBasicAuthenticator("YourLoginId", "password");

            var request = new RestRequest(string.Format("broadcast/{0}/control", broadcastId), Method.PUT);
            request.AddParameter("Command", "ARCHIVE");
            request.AddParameter("MaxActive", "10");

            var response = client.Execute(request);
            string content = response.Content;
            return content;
        }
    }
}

The response code returned is:

204

Which means that the Broadcast's Status has been edited successfully.

Have more questions? Submit a request

Comments