CallfireApiClient.Api.Campaigns.CampaignSoundsApi.CreateFromTtsAndGetSoundDetails C# (CSharp) Method

CreateFromTtsAndGetSoundDetails() public method

Use this API to create a sound file via a supplied string of text.
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 CreateFromTtsAndGetSoundDetails ( TextToSpeech textToSpeech, string fields ) : CampaignSound
textToSpeech TextToSpeech TTS object to create
fields string Limit text fields returned. Example fields=limit,offset,items(id,message)
return CallfireApiClient.Api.Campaigns.Model.CampaignSound
        public CampaignSound CreateFromTtsAndGetSoundDetails(TextToSpeech textToSpeech, string fields)
        {
            var queryParams = ClientUtils.BuildQueryParams("fields", fields);
            return Client.Post<CampaignSound>(SOUNDS_TTS_PATH, textToSpeech, queryParams);
        }