Skip to content

adamsc64/subuno-python-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#####################################
# Copyright 2011 MERS Technologies. #
#####################################

Subuno Python API Library

OVERVIEW
--------
The Subuno API allows developers to integrate Subuno's fraud screening service and gain access to multiple fraud prevention solutions. Transactions can then be passed to Subuno and screened based on the rules setup in the SaaS. 

Subuno provides a fraud screening software-as-a-service (SaaS) platform that allows merchants to leverage multiple fraud detection solutions in a rules based and multi-layered approach. Without requiring technical knowledge, Subuno helps users easily automate their fraud screening flow and speed up the manual review process by bringing relevant fraud screening tools together on the same review screen.'

URL: http://www.subuno.com/developers.html 
Email: support@subuno.com


PREREQUISITES
-------------
The Subuno Python API requires the json module (Python 2.6 or 2.7 will be fine).
  (http://docs.python.org/library/json.html)
  
  
INSTALLATION
------------
We recommend you use the `pip` installer:
    pip install subuno

If this doesn't work for you, you can also manually install latest version:
1. Go to http://www.subuno.com/developers.html.
2. Download the latest compressed python release.
3. Then uncompress it and run setup.py:
        tar xvfz subuno-1.x.tar.gz
        cd subuno-1.x
        python setup.py install

USAGE
-----
Once the library is installed to your python path, you can import the subuno
manager object easily and invoke the run() method:
    >>> from subuno import subuno
    >>> subuno.run(...)
    
The subuno.run() method takes two required arguments:
1.  apikey  - Your api license key as a string.
2.  data    - A standard python dictionary representation of a transaction.
              You can find a list of keys and descriptions of expected values
              at http://www.subuno.com/developers.html.
              
The subuno.run() method returns a standard python dictionary with key-value
pairs of data returned by the API over JSON. In the case of most errors, it
will raise a SUBUNOAPIError python exception. You can catch this exception
to streamline your own error handling.


EXAMPLES
--------

See contents of the `examples` directory.

Feel free to edit the examples and put in your own Subuno API license key.
To execute examples:
    cd examples
        [edit the file example1.py]
    python example1.py

About

Clone of Python API library that I wrote for Subuno.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages