@@ -504,6 +504,45 @@ def get_order_decisions(order_id, opts = {})
504504 Response . new ( response . body , response . code , response . response )
505505 end
506506
507+ # Gets the decision status of a session.
508+ #
509+ # See https://siftscience.com/developers/docs/ruby/decisions-api/decision-status .
510+ #
511+ # ==== Parameters
512+ #
513+ # user_id::
514+ # The ID of the user in the session.
515+ #
516+ # session_id::
517+ # The ID of a session.
518+ #
519+ # opts (optional)::
520+ # A Hash of optional parameters for this request --
521+ #
522+ # :account_id::
523+ # Overrides the account id for this call.
524+ #
525+ # :api_key::
526+ # Overrides the API key for this call.
527+ #
528+ # :timeout::
529+ # Overrides the timeout (in seconds) for this call.
530+ #
531+ def get_session_decisions ( user_id , session_id , opts = { } )
532+ account_id = opts [ :account_id ] || @account_id
533+ api_key = opts [ :api_key ] || @api_key
534+ timeout = opts [ :timeout ] || @timeout
535+
536+ options = {
537+ :headers => { "User-Agent" => user_agent } ,
538+ :basic_auth => { :username => api_key , :password => "" }
539+ }
540+ options . merge! ( :timeout => timeout ) unless timeout . nil?
541+
542+ uri = API3_ENDPOINT + Sift . session_decisions_api_path ( account_id , user_id , session_id )
543+ response = self . class . get ( uri , options )
544+ Response . new ( response . body , response . code , response . response )
545+ end
507546
508547 # Gets the decision status of a piece of content.
509548 #
0 commit comments