CallFire Solutions

Get Broadcast Schedule

Follow

GET BROADCAST SCHEDULE

Gets a BroadcastSchedule by id

This operation lists information about individual Broadcast Schedule attached to a Broadcast.

REQUEST PARAMETERS

ParameterDemo ValueDescriptionData Type
GetBroadcastSchedule   BroadcastSchedule request by unique ID object
Id Unique ID of resource long

RESPONSE PARAMETERS

ParameterDescriptionData Type
BroadcastSchedule    
id Unique ID of Broadcast Schedule long
StartTimeOfDay Earliest time a client can be contacted in the timezone associated with the number's NPA/NXX time
StopTimeOfDay Latest time a client can be contacted in the timezone associated with the number's NPA/NXX time
TimeZone Time Zone string
BeginDate Start date of Campaign date
EndDate End date of Campaign date
DaysOfWeek [SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY] List[DayOfWeek]

EXAMPLE


using RestSharp;

namespace [your-namespace]
{
    public class [your-class]
    {
        public string GetBroadcastSchedule()
        {
            long scheduleId = 4; //Your schedule 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/schedule/{0}", scheduleId), Method.GET);

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

The XML returned is:

<r:Resource xmlns="http://api.callfire.com/data" xmlns:r="http://api.callfire.com/resource">

    <BroadcastSchedule id="4">

       <StartTimeOfDay>09:00:00Z</StartTimeOfDay>

       <StopTimeOfDay>18:00:00Z</StopTimeOfDay>

       <TimeZone>America/Los_Angeles</TimeZone>

       <BeginDate>2015-03-01Z</BeginDate>

       <EndDate>2015-03-09Z</EndDate>

       <DaysOfWeek>SUNDAY MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY</DaysOfWeek>

    </BroadcastSchedule>

</r:Resource>

Have more questions? Submit a request

Comments