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
Parameter | Data Type | Demo Value | Description |
---|---|---|---|
ControlBroadcast | object | ||
Id | long | 135 | Unique ID of resource |
RequestId | anyURI | ||
Command | BroadcastCommand | [START, STOP, ARCHIVE] | |
MaxActive | int | 50 | Max simultaneous calls |
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.