-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(Data Success) Updated Documentation, remove deprecated fields, added…
… missing message fields (#26) * Updated docs * Added missing fields to Message.java * Updated version to 2.0.1 * Removed old V204 events * Added extra comment to changeS * Added Nick's requested changes
- Loading branch information
1 parent
bd1daf7
commit 639a53a
Showing
7 changed files
with
58 additions
and
121 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Sift Science Java API | ||
|
||
The official Java bindings for the latest version (v204) of the [Sift Science API](https://siftscience.com/developers/docs/java/apis-overview) . | ||
The official Java bindings for the latest version (v205) of the [Sift Science API](https://siftscience.com/developers/docs/java/apis-overview) . | ||
|
||
## Requirements | ||
Java 1.7 or later. | ||
|
@@ -11,13 +11,13 @@ Java 1.7 or later. | |
<dependency> | ||
<groupId>com.siftscience</groupId> | ||
<artifactId>sift-java</artifactId> | ||
<version>1.5</version> | ||
<version>2.0.1</version> | ||
</dependency> | ||
``` | ||
### Gradle | ||
``` | ||
dependencies { | ||
compile 'com.siftscience:sift-java:1.5' | ||
compile 'com.siftscience:sift-java:2.0.1' | ||
} | ||
``` | ||
### Other | ||
|
@@ -241,6 +241,21 @@ ApplyDecisionRequest request = client.buildRequest( | |
); | ||
``` | ||
|
||
To apply a decision to a piece of content, create a request with accountId, userId, contentId and ApplyDecisionFieldSet. | ||
```java | ||
ApplyDecisionRequest request = client.buildRequest( | ||
new ApplyDecisionFieldSet() | ||
.setAccountId("your_account_id") | ||
.setUserId("a_user_id") | ||
.setContentId("a_content_id") | ||
.setDecisionId("decision_id") | ||
.setSource(DecisionSource.MANUAL_REVIEW) | ||
.setAnalyst("[email protected]") | ||
.setDescription("description of decision applied") | ||
); | ||
``` | ||
|
||
|
||
#### Get decisions | ||
|
||
[API Docs](https://siftscience.com/developers/docs/java/decisions-api/get-decisions) | ||
|
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
46 changes: 0 additions & 46 deletions
46
src/main/java/com/siftscience/model/SendMessageFieldSet.java
This file was deleted.
Oops, something went wrong.
66 changes: 0 additions & 66 deletions
66
src/main/java/com/siftscience/model/SubmitReviewFieldSet.java
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -873,6 +873,8 @@ public void testUpdateMessage() throws Exception { | |
" \"$body\": \"Let's meet at 5pm\",\n" + | ||
" \"$contact_email\": \"[email protected]\",\n" + | ||
" \"$recipient_user_ids\": [\"fy9h989sjphh71\"],\n" + | ||
" \"$subject\": \"Hello world\",\n" + | ||
" \"$root_content_id\": \"posting-123\",\n" + | ||
" \"$images\": [{\n" + | ||
" \"$md5_hash\": \"aflshdfbalsubdf3234sfdkjb\",\n" + | ||
" \"$link\": \"https://www.domain.com/file.png\",\n" + | ||
|
@@ -911,6 +913,8 @@ public void testUpdateMessage() throws Exception { | |
.setBody("Let's meet at 5pm") | ||
.setContactEmail("[email protected]") | ||
.setRecipientUserIds(Collections.singletonList("fy9h989sjphh71")) | ||
.setSubject("Hello world") | ||
.setRootContentId("posting-123") | ||
.setImages(images); | ||
|
||
// Build and execute the request against the mock server. | ||
|