getRedirectLocationWithHttpInfo method

Future<Response> getRedirectLocationWithHttpInfo(
  1. String url
)

Get redirect location

Minimum server version: 3.10 ##### Permissions Must be logged in.

Note: This method returns the HTTP Response.

Parameters:

  • String url (required): Url to check

Implementation

Future<Response> getRedirectLocationWithHttpInfo(
  String url,
) async {
  // ignore: prefer_const_declarations
  final path = r'/redirect_location';

  // ignore: prefer_final_locals
  Object? postBody;

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

  queryParams.addAll(_queryParams('', 'url', url));

  const contentTypes = <String>[];

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