-
Notifications
You must be signed in to change notification settings - Fork 13
RestClient
codefriar edited this page Oct 5, 2023
·
2 revisions
STATUS: ACTIVE
A virtual class for making REST API calls
Inheritance
RestLib > RestClient
Constructor for the RestClient class.
Param | Description |
---|---|
namedCredentialName |
String value of the named credential to use |
Inherited
TESTVISIBLE
The name of the Named Credential to use
SUPPRESSWARNINGS
A static wrapper for the main makeApiCall method
Param | Description |
---|---|
namedCredential |
The named credential to use |
apiCall |
HTTPVerb enum value. See Enum above |
Type | Description |
---|---|
HttpResponse | HTTPResponse |
Log.get().publish(RestClient.makeApiCall(new RestLibApiCall('MockBin',
RestClient.HttpVerb.GET,
'4cb453a6-a23b-42ea-a6ba-9be1c1f17050',
'',
'',
new Map<String,String>())));