getEmailLinksWithHttpInfo method

Future<Response> getEmailLinksWithHttpInfo(
  1. String emailId
)

Parse and return list of links found in an email (only works for HTML content)

HTML parsing uses JSoup and UNIX line separators. Searches content for href attributes

Note: This method returns the HTTP Response.

Parameters:

  • String emailId (required): ID of email to fetch text for

Implementation

Future<Response> getEmailLinksWithHttpInfo(String emailId,) async {
  // ignore: prefer_const_declarations
  final path = r'/emails/{emailId}/links'
    .replaceAll('{emailId}', emailId);

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];


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