public VoiceCallResponse viewVoiceCall ( final String id ) throws NotFoundException , GeneralException , UnauthorizedException { if ( id == null ) { throw new IllegalArgumentException ( "Voice Message ID must be specified." ) ; } String url = String . format ( "%s%s" , VOICE_CALLS_BASE_URL , VOICECALLSPATH ) ; return messageBirdService . requestByID ( url , id , VoiceCallResponse . class ) ; }
Function to view voice call by id