@@ -55,20 +55,17 @@ public void setApiClient(ApiClient apiClient) {
55
55
56
56
/**
57
57
* Build call for formatsList
58
- * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
59
58
* @param _callback Callback for upload/download progress
60
59
* @return Call to execute
61
60
* @throws ApiException If fail to serialize the request body object
62
61
* @http.response.details
63
62
<table summary="Response Details" border="1">
64
63
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
65
- <tr><td> 200 </td><td> OK </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> * Link - <br> * Pagination - <br> </td></tr>
64
+ <tr><td> 200 </td><td> OK </td><td> - </td></tr>
66
65
<tr><td> 400 </td><td> Bad request </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
67
- <tr><td> 404 </td><td> Not Found </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
68
- <tr><td> 429 </td><td> Rate Limiting </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
69
66
</table>
70
67
*/
71
- public okhttp3 .Call formatsListCall (String xPhraseAppOTP , final ApiCallback _callback ) throws ApiException {
68
+ public okhttp3 .Call formatsListCall (final ApiCallback _callback ) throws ApiException {
72
69
Object localVarPostBody = null ;
73
70
74
71
// create path and map variables
@@ -77,10 +74,6 @@ public okhttp3.Call formatsListCall(String xPhraseAppOTP, final ApiCallback _cal
77
74
List <Pair > localVarQueryParams = new ArrayList <Pair >();
78
75
List <Pair > localVarCollectionQueryParams = new ArrayList <Pair >();
79
76
Map <String , String > localVarHeaderParams = new HashMap <String , String >();
80
- if (xPhraseAppOTP != null ) {
81
- localVarHeaderParams .put ("X-PhraseApp-OTP" , localVarApiClient .parameterToString (xPhraseAppOTP ));
82
- }
83
-
84
77
Map <String , String > localVarCookieParams = new HashMap <String , String >();
85
78
Map <String , Object > localVarFormParams = new HashMap <String , Object >();
86
79
final String [] localVarAccepts = {
@@ -102,74 +95,65 @@ public okhttp3.Call formatsListCall(String xPhraseAppOTP, final ApiCallback _cal
102
95
}
103
96
104
97
@ SuppressWarnings ("rawtypes" )
105
- private okhttp3 .Call formatsListValidateBeforeCall (String xPhraseAppOTP , final ApiCallback _callback ) throws ApiException {
98
+ private okhttp3 .Call formatsListValidateBeforeCall (final ApiCallback _callback ) throws ApiException {
106
99
107
100
108
- okhttp3 .Call localVarCall = formatsListCall (xPhraseAppOTP , _callback );
101
+ okhttp3 .Call localVarCall = formatsListCall (_callback );
109
102
return localVarCall ;
110
103
111
104
}
112
105
113
106
/**
114
107
* List formats
115
108
* Get a handy list of all localization file formats supported in Phrase.
116
- * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
117
109
* @return List<Format>
118
110
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
119
111
* @http.response.details
120
112
<table summary="Response Details" border="1">
121
113
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
122
- <tr><td> 200 </td><td> OK </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> * Link - <br> * Pagination - <br> </td></tr>
114
+ <tr><td> 200 </td><td> OK </td><td> - </td></tr>
123
115
<tr><td> 400 </td><td> Bad request </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
124
- <tr><td> 404 </td><td> Not Found </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
125
- <tr><td> 429 </td><td> Rate Limiting </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
126
116
</table>
127
117
*/
128
- public List <Format > formatsList (String xPhraseAppOTP ) throws ApiException {
129
- ApiResponse <List <Format >> localVarResp = formatsListWithHttpInfo (xPhraseAppOTP );
118
+ public List <Format > formatsList () throws ApiException {
119
+ ApiResponse <List <Format >> localVarResp = formatsListWithHttpInfo ();
130
120
return localVarResp .getData ();
131
121
}
132
122
133
123
/**
134
124
* List formats
135
125
* Get a handy list of all localization file formats supported in Phrase.
136
- * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
137
126
* @return ApiResponse<List<Format>>
138
127
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
139
128
* @http.response.details
140
129
<table summary="Response Details" border="1">
141
130
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
142
- <tr><td> 200 </td><td> OK </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> * Link - <br> * Pagination - <br> </td></tr>
131
+ <tr><td> 200 </td><td> OK </td><td> - </td></tr>
143
132
<tr><td> 400 </td><td> Bad request </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
144
- <tr><td> 404 </td><td> Not Found </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
145
- <tr><td> 429 </td><td> Rate Limiting </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
146
133
</table>
147
134
*/
148
- public ApiResponse <List <Format >> formatsListWithHttpInfo (String xPhraseAppOTP ) throws ApiException {
149
- okhttp3 .Call localVarCall = formatsListValidateBeforeCall (xPhraseAppOTP , null );
135
+ public ApiResponse <List <Format >> formatsListWithHttpInfo () throws ApiException {
136
+ okhttp3 .Call localVarCall = formatsListValidateBeforeCall (null );
150
137
Type localVarReturnType = new TypeToken <List <Format >>(){}.getType ();
151
138
return localVarApiClient .execute (localVarCall , localVarReturnType );
152
139
}
153
140
154
141
/**
155
142
* List formats (asynchronously)
156
143
* Get a handy list of all localization file formats supported in Phrase.
157
- * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
158
144
* @param _callback The callback to be executed when the API call finishes
159
145
* @return The request call
160
146
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
161
147
* @http.response.details
162
148
<table summary="Response Details" border="1">
163
149
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
164
- <tr><td> 200 </td><td> OK </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> * Link - <br> * Pagination - <br> </td></tr>
150
+ <tr><td> 200 </td><td> OK </td><td> - </td></tr>
165
151
<tr><td> 400 </td><td> Bad request </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
166
- <tr><td> 404 </td><td> Not Found </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
167
- <tr><td> 429 </td><td> Rate Limiting </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
168
152
</table>
169
153
*/
170
- public okhttp3 .Call formatsListAsync (String xPhraseAppOTP , final ApiCallback <List <Format >> _callback ) throws ApiException {
154
+ public okhttp3 .Call formatsListAsync (final ApiCallback <List <Format >> _callback ) throws ApiException {
171
155
172
- okhttp3 .Call localVarCall = formatsListValidateBeforeCall (xPhraseAppOTP , _callback );
156
+ okhttp3 .Call localVarCall = formatsListValidateBeforeCall (_callback );
173
157
Type localVarReturnType = new TypeToken <List <Format >>(){}.getType ();
174
158
localVarApiClient .executeAsync (localVarCall , localVarReturnType , _callback );
175
159
return localVarCall ;
0 commit comments