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

UploadAndGetSoundDetails() public method

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
return CallfireApiClient.Api.Campaigns.Model.CampaignSound
        public CampaignSound UploadAndGetSoundDetails(string pathToFile, string name = null)
        {
            return Client.PostFile<CampaignSound>(SOUNDS_FILES_PATH, name, pathToFile);
        }