Skip to content

Commit

Permalink
Merge pull request #61 from SiftScience/rlong-wf
Browse files Browse the repository at this point in the history
(For Gary) Add force_workflow_run query param
  • Loading branch information
reginaldlong authored Jul 20, 2018
2 parents 463d7ed + 80862d2 commit f168f7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions HISTORY
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
=== 3.2.0 2018-07-05
- Add new query parameter force_workflow_run

=== 3.1.0 2018-06-04
- Adds support for get session decisions to [Decisions API](https://siftscience.com/developers/docs/curl/decisions-api)

Expand Down
2 changes: 2 additions & 0 deletions lib/sift/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ def track(event, properties = {}, opts = {})
return_score = opts[:return_score]
return_action = opts[:return_action]
return_workflow_status = opts[:return_workflow_status]
force_workflow_run = opts[:force_workflow_run]
abuse_types = opts[:abuse_types]

raise("event must be a non-empty string") if (!event.is_a? String) || event.empty?
Expand All @@ -216,6 +217,7 @@ def track(event, properties = {}, opts = {})
query["return_score"] = "true" if return_score
query["return_action"] = "true" if return_action
query["return_workflow_status"] = "true" if return_workflow_status
query["force_workflow_run"] = "true" if force_workflow_run
query["abuse_types"] = abuse_types.join(",") if abuse_types

options = {
Expand Down

0 comments on commit f168f7b

Please sign in to comment.