Skip to content

Commit

Permalink
Highlighting Python console fragments in README (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkosir authored Nov 16, 2016
1 parent 6326f98 commit 8d8b3f3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ verification service.
Installation
------------

.. code::
::

$ pip install neverbounce

Expand All @@ -22,7 +22,7 @@ verifications. The **free account** supports only **single verifications**.
Single verification
~~~~~~~~~~~~~~~~~~~

.. code::
.. code-block:: pycon
>>> from neverbounce import NeverBounce
Expand All @@ -41,27 +41,27 @@ Bulk verification
To use this features you need to `configure a payment method`_ in
NeverBounce account settings.

.. code::
.. code-block:: pycon
>>> from neverbounce import NeverBounce
>>> neverbounce = NeverBounce('my_api_username', 'my_api_key')
Create the job and get it's id:

.. code::
.. code-block:: pycon
>>> emails = ['[email protected]', '[email protected]']
>>> job_id = neverbounce.create_job(emails).job_id
Periodically check the status of verification job:

.. code::
.. code-block:: pycon
>>> job_status = neverbounce.check_job(job_id)
Use the `results` generator to iterate over verified emails if the job has been completed:

.. code::
.. code-block:: pycon
>>> if job_status.is_completed:
... for verified in neverbounce.results(job_id):
Expand All @@ -74,7 +74,7 @@ Account information

Get the information about your API account:

.. code::
.. code-block:: pycon
>>> from neverbounce import NeverBounce
>>> neverbounce = NeverBounce('my_api_username', 'my_api_key')
Expand Down

0 comments on commit 8d8b3f3

Please sign in to comment.