getScriptsIDWithHttpInfo method

Future<Response> getScriptsIDWithHttpInfo(
  1. String scriptID
)

Retrieve a script

Uses script ID to retrieve details of an invokable script.

Note: This method returns the HTTP Response.

Parameters:

  • String scriptID (required): The script ID.

Implementation

Future<Response> getScriptsIDWithHttpInfo(
  String scriptID,
) async {
  final path = r'/scripts/{scriptID}'.replaceAll('{scriptID}', scriptID);

  // ignore: prefer_final_locals
  Object? postBody;

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

  const authNames = <String>['TokenAuthentication'];
  const contentTypes = <String>[];

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