@@ -627,23 +627,26 @@ private com.squareup.okhttp.Call userCreateTokenValidateBeforeCall(String userna
627
627
*
628
628
* @param username username of user (required)
629
629
* @param accessToken (optional)
630
+ * @return AccessToken
630
631
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
631
632
*/
632
- public void userCreateToken (String username , AccessToken accessToken ) throws ApiException {
633
- userCreateTokenWithHttpInfo (username , accessToken );
633
+ public AccessToken userCreateToken (String username , AccessToken accessToken ) throws ApiException {
634
+ ApiResponse <AccessToken > resp = userCreateTokenWithHttpInfo (username , accessToken );
635
+ return resp .getData ();
634
636
}
635
637
636
638
/**
637
639
* Create an access token
638
640
*
639
641
* @param username username of user (required)
640
642
* @param accessToken (optional)
641
- * @return ApiResponse<Void >
643
+ * @return ApiResponse<AccessToken >
642
644
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
643
645
*/
644
- public ApiResponse <Void > userCreateTokenWithHttpInfo (String username , AccessToken accessToken ) throws ApiException {
646
+ public ApiResponse <AccessToken > userCreateTokenWithHttpInfo (String username , AccessToken accessToken ) throws ApiException {
645
647
com .squareup .okhttp .Call call = userCreateTokenValidateBeforeCall (username , accessToken , null , null );
646
- return apiClient .execute (call );
648
+ Type localVarReturnType = new TypeToken <AccessToken >(){}.getType ();
649
+ return apiClient .execute (call , localVarReturnType );
647
650
}
648
651
649
652
/**
@@ -655,7 +658,7 @@ public ApiResponse<Void> userCreateTokenWithHttpInfo(String username, AccessToke
655
658
* @return The request call
656
659
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
657
660
*/
658
- public com .squareup .okhttp .Call userCreateTokenAsync (String username , AccessToken accessToken , final ApiCallback <Void > callback ) throws ApiException {
661
+ public com .squareup .okhttp .Call userCreateTokenAsync (String username , AccessToken accessToken , final ApiCallback <AccessToken > callback ) throws ApiException {
659
662
660
663
ProgressResponseBody .ProgressListener progressListener = null ;
661
664
ProgressRequestBody .ProgressRequestListener progressRequestListener = null ;
@@ -677,7 +680,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
677
680
}
678
681
679
682
com .squareup .okhttp .Call call = userCreateTokenValidateBeforeCall (username , accessToken , progressListener , progressRequestListener );
680
- apiClient .executeAsync (call , callback );
683
+ Type localVarReturnType = new TypeToken <AccessToken >(){}.getType ();
684
+ apiClient .executeAsync (call , localVarReturnType , callback );
681
685
return call ;
682
686
}
683
687
/**
0 commit comments