HelpersGetHttpResponseMessage Method (String, HttpMethod, String, String, String) |
Gets the HTTP response from an HTTP request call with jsonContent in basic authentication (username and password).
Namespace:
WorkflowGen.My.Web
Assembly:
WorkflowGen.My (in WorkflowGen.My.dll) Version: 8.3.3.0 (8.3.3.20240926)
Syntax public static HttpResponseMessage GetHttpResponseMessage(
string apiUri,
HttpMethod httpMethod,
string username,
string password,
string jsonContent = null
)
Public Shared Function GetHttpResponseMessage (
apiUri As String,
httpMethod As HttpMethod,
username As String,
password As String,
Optional jsonContent As String = Nothing
) As HttpResponseMessage
Parameters
- apiUri
- Type: SystemString
Uri of the API - httpMethod
- Type: System.Net.HttpHttpMethod
Type of the HTTP request - username
- Type: SystemString
Username of the account to authenticate - password
- Type: SystemString
Password of the account to authenticate - jsonContent (Optional)
- Type: SystemString
Content of the HTTP request in JSON format
Return Value
Type:
HttpResponseMessageSee Also