|
20 | 20 | import software.xdev.sessionize.client.Pair; |
21 | 21 |
|
22 | 22 | import software.xdev.sessionize.model.Speaker; |
| 23 | +import software.xdev.sessionize.model.SpeakerWithEmail; |
23 | 24 |
|
24 | 25 |
|
25 | 26 | import java.util.ArrayList; |
@@ -126,4 +127,87 @@ public List<Speaker> getAllSpeakers(String endpointId, Map<String, String> addit |
126 | 127 | ); |
127 | 128 | } |
128 | 129 |
|
| 130 | + /** |
| 131 | + * |
| 132 | + * Undocumented endpoint for retrieving the speakers with emails |
| 133 | + * @param endpointId (required) |
| 134 | + * @param s Special key that is only available/retrievable for unlocked admins (Contacting Sessionize-Support is required) (required) |
| 135 | + * @return List<SpeakerWithEmail> |
| 136 | + * @throws ApiException if fails to make API call |
| 137 | + */ |
| 138 | + public List<SpeakerWithEmail> getAllSpeakersEmails(String endpointId, String s) throws ApiException { |
| 139 | + return this.getAllSpeakersEmails(endpointId, s, Collections.emptyMap()); |
| 140 | + } |
| 141 | + |
| 142 | + |
| 143 | + /** |
| 144 | + * |
| 145 | + * Undocumented endpoint for retrieving the speakers with emails |
| 146 | + * @param endpointId (required) |
| 147 | + * @param s Special key that is only available/retrievable for unlocked admins (Contacting Sessionize-Support is required) (required) |
| 148 | + * @param additionalHeaders additionalHeaders for this call |
| 149 | + * @return List<SpeakerWithEmail> |
| 150 | + * @throws ApiException if fails to make API call |
| 151 | + */ |
| 152 | + public List<SpeakerWithEmail> getAllSpeakersEmails(String endpointId, String s, Map<String, String> additionalHeaders) throws ApiException { |
| 153 | + Object localVarPostBody = null; |
| 154 | + |
| 155 | + // verify the required parameter 'endpointId' is set |
| 156 | + if (endpointId == null) { |
| 157 | + throw new ApiException(400, "Missing the required parameter 'endpointId' when calling getAllSpeakersEmails"); |
| 158 | + } |
| 159 | + |
| 160 | + // verify the required parameter 's' is set |
| 161 | + if (s == null) { |
| 162 | + throw new ApiException(400, "Missing the required parameter 's' when calling getAllSpeakersEmails"); |
| 163 | + } |
| 164 | + |
| 165 | + // create path and map variables |
| 166 | + String localVarPath = "/api/v2/{endpointId}/view/SpeakersEmails" |
| 167 | + .replaceAll("\\{" + "endpointId" + "\\}", apiClient.escapeString(endpointId.toString())); |
| 168 | + |
| 169 | + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); |
| 170 | + String localVarQueryParameterBaseName; |
| 171 | + List<Pair> localVarQueryParams = new ArrayList<Pair>(); |
| 172 | + List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); |
| 173 | + Map<String, String> localVarHeaderParams = new HashMap<String, String>(); |
| 174 | + Map<String, String> localVarCookieParams = new HashMap<String, String>(); |
| 175 | + Map<String, Object> localVarFormParams = new HashMap<String, Object>(); |
| 176 | + |
| 177 | + localVarQueryParams.addAll(apiClient.parameterToPair("s", s)); |
| 178 | + |
| 179 | + localVarHeaderParams.putAll(additionalHeaders); |
| 180 | + |
| 181 | + |
| 182 | + |
| 183 | + final String[] localVarAccepts = { |
| 184 | + "application/json" |
| 185 | + }; |
| 186 | + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); |
| 187 | + |
| 188 | + final String[] localVarContentTypes = { |
| 189 | + |
| 190 | + }; |
| 191 | + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); |
| 192 | + |
| 193 | + String[] localVarAuthNames = new String[] { }; |
| 194 | + |
| 195 | + TypeReference<List<SpeakerWithEmail>> localVarReturnType = new TypeReference<List<SpeakerWithEmail>>() {}; |
| 196 | + return apiClient.invokeAPI( |
| 197 | + localVarPath, |
| 198 | + "GET", |
| 199 | + localVarQueryParams, |
| 200 | + localVarCollectionQueryParams, |
| 201 | + localVarQueryStringJoiner.toString(), |
| 202 | + localVarPostBody, |
| 203 | + localVarHeaderParams, |
| 204 | + localVarCookieParams, |
| 205 | + localVarFormParams, |
| 206 | + localVarAccept, |
| 207 | + localVarContentType, |
| 208 | + localVarAuthNames, |
| 209 | + localVarReturnType |
| 210 | + ); |
| 211 | + } |
| 212 | + |
129 | 213 | } |
0 commit comments