public static Recording get ( final BandwidthClient client , final String id ) throws Exception { final String recordingsUri = client . getUserResourceUri ( BandwidthConstants . RECORDINGS_URI_PATH ) ; final String uri = StringUtils . join ( new String [ ] { recordingsUri , id } , ' ' ) ; final JSONObject jsonObject = toJSONObject ( client . get ( uri , null ) ) ; return new Recording ( client , recordingsUri , jsonObject ) ; }
Recording factory method . Returns recording object from id