Skip to content

Commit 24cf756

Browse files
author
Andres Tarantini
committed
Documentation: Use "code-block" for better syntax highlight.
1 parent acbb42f commit 24cf756

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ Documentation is available at https://developers.getmango.com/en/api/?platform=p
2424
Usage
2525
=====
2626

27-
Import the library and set your secret API key::
27+
Import the library and set your secret API key:
28+
29+
.. code-block:: python
2830
2931
>>> import pymango as mango
3032
>>> mango.api_key = "your Mango secret API key"
@@ -34,7 +36,9 @@ Create a charge
3436
---------------
3537

3638
In order to create a Charge, you must call the ``create()`` method with
37-
the required arguments (see `API documentation <https://developers.getmango.com/en/api/charges/?platform=python#arguments>`_)::
39+
the required arguments (see `API documentation <https://developers.getmango.com/en/api/charges/?platform=python#arguments>`_):
40+
41+
.. code-block:: python
3842
3943
>>> charge = mango.Charges.create(amount=2000, email="[email protected]", token="token_mwhushs06o62aruq9n3pmvu7f0ia696y")
4044
>>> print charge.get("uid")
@@ -46,7 +50,9 @@ the required arguments (see `API documentation <https://developers.getmango.com/
4650
Get single Charge
4751
-----------------
4852

49-
When you have a Charge ``uid``, you can get a full detail using the ``get()`` method::
53+
When you have a Charge ``uid``, you can get a full detail using the ``get()`` method:
54+
55+
.. code-block:: python
5056
5157
>>> mango.Charges.get("charge_72t1r7vmb9pknrl4otg6xy3wrkwrrpzt")
5258
{

0 commit comments

Comments
 (0)