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 URLETSdkException
public ETRestConnection(ETClient client, String endpoint, boolean isAuthConnection) throws ETSdkException
client
- The ETClient objectendpoint
- The endpoint URLisAuthConnection
- true is it is an auth connection, false otherwiseETSdkException
public ETRestConnection.Response get(String path) throws ETSdkException
path
- The path to GET the responseETSdkException
public ETRestConnection.Response post(String path, String payload) throws ETSdkException
path
- The path to POST or createETSdkException
public ETRestConnection.Response patch(String path, String payload) throws ETSdkException
path
- The path to PATCH or updateETSdkException
public ETRestConnection.Response delete(String path) throws ETSdkException
path
- The path to DELETEETSdkException
Copyright © 2017. All rights reserved.