Click or drag to resize

HelpersGetHttpResponseMessage Method (String, HttpMethod, String, HttpContent)

Gets the HTTP response from an HTTP request call with content in bearer token authentication.

Namespace:  WorkflowGen.My.Web
Assembly:  WorkflowGen.My (in WorkflowGen.My.dll) Version: 9.1.0.0 (9.1.0.20241025)
Syntax
public static HttpResponseMessage GetHttpResponseMessage(
	string apiUri,
	HttpMethod httpMethod,
	string bearerToken,
	HttpContent httpContent = null
)

Parameters

apiUri
Type: SystemString
Uri of the API
httpMethod
Type: System.Net.HttpHttpMethod
Type of the HTTP request
bearerToken
Type: SystemString
Token of the account to authenticate
httpContent (Optional)
Type: System.Net.HttpHttpContent
Content of the HTTP request

Return Value

Type: HttpResponseMessage
See Also