-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Highlighting Python console fragments in README (#5)
- Loading branch information
1 parent
6326f98
commit 8d8b3f3
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ verification service. | |
Installation | ||
------------ | ||
|
||
.. code:: | ||
:: | ||
|
||
$ pip install neverbounce | ||
|
||
|
@@ -22,7 +22,7 @@ verifications. The **free account** supports only **single verifications**. | |
Single verification | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. code:: | ||
.. code-block:: pycon | ||
>>> from neverbounce import NeverBounce | ||
|
@@ -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): | ||
|
@@ -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') | ||
|