This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds simple interfaces for ETClient and ETRestConnection.
Only method exposed on ETClient at the moment is getRestConnection, making it clear that this is the only use of the client for non-SOAP endpoints.
- Loading branch information
1 parent
258b410
commit 7c3f081
Showing
5 changed files
with
35 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.exacttarget.fuelsdk; | ||
|
||
public interface IETClient { | ||
IETRestConnection getRestConnection(); | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/exacttarget/fuelsdk/IETRestConnection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.exacttarget.fuelsdk; | ||
|
||
import com.exacttarget.fuelsdk.ETRestConnection.Response; | ||
|
||
public interface IETRestConnection { | ||
Response get(String path) throws ETSdkException; | ||
Response post(String path, String payload) throws ETSdkException; | ||
Response patch(String path, String payload) throws ETSdkException; | ||
Response delete(String path) throws ETSdkException; | ||
} |