public class ETRestConnection extends Object
ETRestConnection represents an active
connection to the Salesforce Marketing Cloud REST API.| Modifier and Type | Class and Description |
|---|---|
static class |
ETRestConnection.Method
types of HTTP method that can be used for CRUD operation
|
class |
ETRestConnection.Response
A
Response represents salesforce marketing cloud REST API response. |
| Constructor and Description |
|---|
ETRestConnection(ETClient client,
String endpoint)
Class constructor, Initializes a new instance of the class.
|
ETRestConnection(ETClient client,
String endpoint,
boolean isAuthConnection)
Class constructor, Initializes a new instance of the class.
|
| Modifier and Type | Method and Description |
|---|---|
ETRestConnection.Response |
delete(String path) |
ETRestConnection.Response |
get(String path) |
ETRestConnection.Response |
patch(String path,
String payload) |
ETRestConnection.Response |
post(String path,
String payload) |
public ETRestConnection(ETClient client, String endpoint) throws ETSdkException
client - The ETClient objectendpoint - The endpoint URLETSdkExceptionpublic ETRestConnection(ETClient client, String endpoint, boolean isAuthConnection) throws ETSdkException
client - The ETClient objectendpoint - The endpoint URLisAuthConnection - true is it is an auth connection, false otherwiseETSdkExceptionpublic ETRestConnection.Response get(String path) throws ETSdkException
path - The path to GET the responseETSdkExceptionpublic ETRestConnection.Response post(String path, String payload) throws ETSdkException
path - The path to POST or createETSdkExceptionpublic ETRestConnection.Response patch(String path, String payload) throws ETSdkException
path - The path to PATCH or updateETSdkExceptionpublic ETRestConnection.Response delete(String path) throws ETSdkException
path - The path to DELETEETSdkExceptionCopyright © 2017. All rights reserved.