CallfireApiClient.Api.Campaigns.TextBroadcastsApi.Create C# (CSharp) Method

Create() public method

Create a text broadcast campaign using the Text Broadcast API. A campaign can be created with no contacts and bare minimum configuration, but contacts will have to be added further on to use the campaign. If start set to true campaign starts immediately
in case HTTP response code is 400 - Bad request, the request was formatted improperly. in case HTTP response code is 401 - Unauthorized, API Key missing or invalid. in case HTTP response code is 403 - Forbidden, insufficient permissions. in case HTTP response code is 404 - NOT FOUND, the resource requested does not exist. in case HTTP response code is 500 - Internal Server Error. in case HTTP response code is something different from codes listed above. in case error has occurred in client.
public Create ( TextBroadcast broadcast, bool start = false ) : ResourceId
broadcast CallfireApiClient.Api.Campaigns.Model.TextBroadcast text broadcast to create
start bool if set to true then broadcast will start immediately, by default it set to false
return CallfireApiClient.Api.Common.Model.ResourceId
        public ResourceId Create(TextBroadcast broadcast, bool start = false)
        {
            var queryParams = ClientUtils.BuildQueryParams("start", start.ToString());
            return Client.Post<ResourceId>(TB_PATH, broadcast, queryParams);
        }