@@ -899,7 +899,7 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done)
899899 * </tr>
900900 * </table>
901901 */
902- private okhttp3 .Call uploadWithUploadTokenCall (String token , File file , final ApiCallback _callback )
902+ private okhttp3 .Call uploadWithUploadTokenCall (String token , File file , String videoId , final ApiCallback _callback )
903903 throws ApiException {
904904 Object localVarPostBody = null ;
905905
@@ -920,6 +920,10 @@ private okhttp3.Call uploadWithUploadTokenCall(String token, File file, final Ap
920920 localVarQueryParams .addAll (localVarApiClient .parameterToPair ("token" , token ));
921921 }
922922
923+ if (videoId != null ) {
924+ localVarFormParams .put ("videoId" , videoId );
925+ }
926+
923927 final String [] localVarAccepts = { "application/json" };
924928 final String localVarAccept = localVarApiClient .selectHeaderAccept (localVarAccepts );
925929 if (localVarAccept != null ) {
@@ -983,8 +987,8 @@ private okhttp3.Call uploadWithUploadTokenChunkCall(String token, File file, Str
983987 }
984988
985989 @ SuppressWarnings ("rawtypes" )
986- private okhttp3 .Call uploadWithUploadTokenValidateBeforeCall (String token , File file , final ApiCallback _callback )
987- throws ApiException {
990+ private okhttp3 .Call uploadWithUploadTokenValidateBeforeCall (String token , File file , String videoId ,
991+ final ApiCallback _callback ) throws ApiException {
988992
989993 // verify the required parameter 'token' is set
990994 if (token == null ) {
@@ -996,7 +1000,7 @@ private okhttp3.Call uploadWithUploadTokenValidateBeforeCall(String token, File
9961000 throw new ApiException ("Missing the required parameter 'file' when calling uploadWithUploadToken" );
9971001 }
9981002
999- okhttp3 .Call localVarCall = uploadWithUploadTokenCall (token , file , _callback );
1003+ okhttp3 .Call localVarCall = uploadWithUploadTokenCall (token , file , videoId , _callback );
10001004 return localVarCall ;
10011005 }
10021006
@@ -1372,7 +1376,7 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done)
13721376 }
13731377 };
13741378
1375- okhttp3 .Call localVarCall = uploadWithUploadTokenValidateBeforeCall (token , file , apiCallback );
1379+ okhttp3 .Call localVarCall = uploadWithUploadTokenValidateBeforeCall (token , file , videoId , apiCallback );
13761380 Type localVarReturnType = new TypeToken <Video >() {
13771381 }.getType ();
13781382 return localVarApiClient .execute (localVarCall , localVarReturnType );
0 commit comments