getContent

fun getContent(urlStr: String, inputJson: String? = null): String

Performs a POST request to the specified URL string with the given input JSON payload.

Return

The response body as a String.

Parameters

urlStr

The URL to which the POST request is made.

inputJson

The JSON payload for the request.