getGravatarUrlForEmailAddressWithHttpInfo method

Future<Response> getGravatarUrlForEmailAddressWithHttpInfo(
  1. String emailAddress, {
  2. String? size,
})

Get gravatar url for email address

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> getGravatarUrlForEmailAddressWithHttpInfo(String emailAddress, { String? size, }) async {
  // ignore: prefer_const_declarations
  final path = r'/emails/gravatarFor';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

    queryParams.addAll(_queryParams('', 'emailAddress', emailAddress));
  if (size != null) {
    queryParams.addAll(_queryParams('', 'size', size));
  }

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}