createWaitlistEntryWithHttpInfo method
Future<Response>
createWaitlistEntryWithHttpInfo({
- CreateWaitlistEntryRequest? createWaitlistEntryRequest,
Create a waitlist entry
Creates a new waitlist entry for the given email address. If the email address is already on the waitlist, no new entry will be created and the existing waitlist entry will be returned.
Note: This method returns the HTTP Response
.
Parameters:
- CreateWaitlistEntryRequest createWaitlistEntryRequest:
Implementation
Future<http.Response> createWaitlistEntryWithHttpInfo({
CreateWaitlistEntryRequest? createWaitlistEntryRequest,
}) async {
// ignore: prefer_const_declarations
final path = r'/waitlist_entries';
// ignore: prefer_final_locals
Object? postBody = createWaitlistEntryRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}