C# 클래스 CallfireApiClient.Api.Campaigns.CampaignSoundsApi

파일 보기 프로젝트 열기: CallFire/callfire-api-client-csharp

공개 메소드들

메소드 설명
CreateFromTtsAndGetSoundDetails ( TextToSpeech textToSpeech, string fields ) : CampaignSound

Use this API to create a sound file via a supplied string of text.

Delete ( long id ) : void

Delete a single CampaignSound instance for a given campaign sound id.

Find ( FindSoundsRequest request ) : Page

Find all campaign sounds that were created by the user. These are all of the available sounds to be used in campaigns.

Get ( long id, string fields = null ) : CampaignSound

Returns a single CampaignSound instance for a given campaign sound id. This is the meta data to the sounds only.No audio data is returned from this API.

GetMp3 ( long id ) : Stream

Download the MP3 version of the hosted file.

GetWav ( long id ) : Stream

Download the WAV version of the hosted file.

RecordViaPhoneAndGetSoundDetails ( CallCreateSound callCreateSound, string fields ) : CampaignSound

Use this API to create a sound via phone call. Supply the required phone number in the CallCreateSound object inside of the request, and the user will receive a call shortly after with instructions on how to record a sound over the phone.

UploadAndGetSoundDetails ( string pathToFile, string name = null ) : CampaignSound

Upload a MP3 or WAV file to account

비공개 메소드들

메소드 설명
CampaignSoundsApi ( RestApiClient client ) : System
CreateFromTts ( TextToSpeech textToSpeech ) : ResourceId
RecordViaPhone ( CallCreateSound callCreateSound ) : ResourceId
Upload ( string pathToFile, string name = null ) : ResourceId

메소드 상세

CreateFromTtsAndGetSoundDetails() 공개 메소드

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)
리턴 CallfireApiClient.Api.Campaigns.Model.CampaignSound

Delete() 공개 메소드

Delete a single CampaignSound instance for a given campaign sound id.
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 Delete ( long id ) : void
id long id of campaign sound
리턴 void

Find() 공개 메소드

Find all campaign sounds that were created by the user. These are all of the available sounds to be used in campaigns.
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 Find ( FindSoundsRequest request ) : Page
request CallfireApiClient.Api.CallsTexts.Model.Request.FindSoundsRequest request object with different fields for search
리턴 Page

Get() 공개 메소드

Returns a single CampaignSound instance for a given campaign sound id. This is the meta data to the sounds only.No audio data is returned from this API.
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 Get ( long id, string fields = null ) : CampaignSound
id long id of campaign sound
fields string Limit text fields returned. Example fields=limit,offset,items(id,message)
리턴 CallfireApiClient.Api.Campaigns.Model.CampaignSound

GetMp3() 공개 메소드

Download the MP3 version of the hosted file.
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 GetMp3 ( long id ) : Stream
id long id of sound
리턴 Stream

GetWav() 공개 메소드

Download the WAV version of the hosted file.
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 GetWav ( long id ) : Stream
id long id id of sound
리턴 Stream

RecordViaPhoneAndGetSoundDetails() 공개 메소드

Use this API to create a sound via phone call. Supply the required phone number in the CallCreateSound object inside of the request, and the user will receive a call shortly after with instructions on how to record a sound over the phone.
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 RecordViaPhoneAndGetSoundDetails ( CallCreateSound callCreateSound, string fields ) : CampaignSound
callCreateSound CallCreateSound request object to create campaign sound
fields string Limit text fields returned. Example fields=limit,offset,items(id,message)
리턴 CallfireApiClient.Api.Campaigns.Model.CampaignSound

UploadAndGetSoundDetails() 공개 메소드

Upload a MP3 or WAV file to account
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 UploadAndGetSoundDetails ( string pathToFile, string name = null ) : CampaignSound
pathToFile string path to MP3 or WAV file
name string contact list name
리턴 CallfireApiClient.Api.Campaigns.Model.CampaignSound