STATUS: ACTIVE
A virtual class for making REST API calls
Inheritance
RestLib > RestClient
public RestClient(String namedCredentialName)
Constructor for the RestClient class.
namedCredentialName
protected namedCredentialName
String
Inherited TESTVISIBLE
TESTVISIBLE
The name of the Named Credential to use
public static HttpResponse makeApiCall(String namedCredential, RestLibApiCall apiCall)
SUPPRESSWARNINGS
A static wrapper for the main makeApiCall method
namedCredential
apiCall
HTTPResponse
Log.get().publish(RestClient.makeApiCall(new RestLibApiCall('MockBin', RestClient.HttpVerb.GET, '4cb453a6-a23b-42ea-a6ba-9be1c1f17050', '', '', new Map<String,String>())));
There was an error while loading. Please reload this page.