@@ -88,12 +88,13 @@ public void getAndDeleteRealTimeTranscriptionsTest() throws ApiException, Interr
8888 TimeUnit .SECONDS .sleep (TEST_SLEEP );
8989 ApiResponse <CreateCallResponse > createCallResponse = callsApi .createCallWithHttpInfo (BW_ACCOUNT_ID , createMantecaCallBody );
9090
91+
92+ String callId = createCallResponse .getData ().getCallId ();
9193 assertThat (createCallResponse .getStatusCode (), is (201 ));
9294
9395 // Redirect call to different url
9496 TimeUnit .SECONDS .sleep (TEST_SLEEP );
95- ApiResponse <Void > updateCallResponse = callsApi .updateCallBxmlWithHttpInfo (BW_ACCOUNT_ID ,
96- createCallResponse .getData ().getCallId (), bxmlBody );
97+ ApiResponse <Void > updateCallResponse = callsApi .updateCallBxmlWithHttpInfo (BW_ACCOUNT_ID , callId , bxmlBody );
9798
9899 assertThat (updateCallResponse .getStatusCode (), is (204 ));
99100
@@ -107,10 +108,10 @@ public void getAndDeleteRealTimeTranscriptionsTest() throws ApiException, Interr
107108 // The Transcriptions API tests start here
108109 ApiResponse <List <CallTranscriptionMetadata >> listRealTimeTranscriptionResponse = transcriptionsApi .listRealTimeTranscriptionsWithHttpInfo (BW_ACCOUNT_ID , createCallResponse .getData ().getCallId ());
109110
110- String transcriptionId = listRealTimeTranscriptionResponse .getData ().get ( 0 ). getTranscriptionId ();
111+ String transcriptionId = listRealTimeTranscriptionResponse .getData ().toString ();
111112 TimeUnit .SECONDS .sleep (TEST_SLEEP );
112113
113- ApiResponse <CallTranscriptionResponse > getRealTimeTranscriptionResponse = transcriptionsApi .getRealTimeTranscriptionWithHttpInfo (BW_ACCOUNT_ID , createCallResponse . getData (). getCallId () , transcriptionId );
114+ ApiResponse <CallTranscriptionResponse > getRealTimeTranscriptionResponse = transcriptionsApi .getRealTimeTranscriptionWithHttpInfo (BW_ACCOUNT_ID , callId , transcriptionId );
114115
115116 assertThat (getRealTimeTranscriptionResponse .getStatusCode (), is (200 ));
116117 assertThat (getRealTimeTranscriptionResponse .getData (), hasProperty ("transcriptId" , is (instanceOf (String .class ))));
0 commit comments