Skip to content

Commit

Permalink
Merge pull request #120 from maxmind/fatih/sandbox-info
Browse files Browse the repository at this point in the history
Add info on the Sandbox env
  • Loading branch information
horgh authored Aug 14, 2023
2 parents f5fbc7a + c432afe commit 43766c0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ constructors take your MaxMind account ID and license key:
>>> client = Client(42, 'licensekey')
>>> async_client = AsyncClient(42, 'licensekey')
To use the Sandbox web service instead of the production web service,
you can provide the host argument:

.. code-block:: pycon
>>> client = Client(42, 'licensekey', 'sandbox.maxmind.com')
>>> async_client = AsyncClient(42, 'licensekey', 'sandbox.maxmind.com')
Score, Insights and Factors Usage
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down
5 changes: 5 additions & 0 deletions minfraud/webservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,11 @@ def __init__(
:param license_key: Your MaxMind license key
:type license_key: str
:param host: The host to use when connecting to the web service.
By default, the client connects to the production host. However,
during testing and development, you can set this option to
'sandbox.maxmind.com' to use the Sandbox environment's host. The
sandbox allows you to experiment with the API without affecting your
production data.
:type host: str
:param locales: A tuple of locale codes to use in name property
:type locales: tuple[str]
Expand Down

0 comments on commit 43766c0

Please sign in to comment.