File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ Requirements
1010
1111Installation
1212------------
13- The easiest way to use the MessageBird API in your Python project is to install it using the setup.py file:
13+ The easiest way to use the MessageBird API is to install it using the setup.py file:
1414
1515```
16- $ sudo python setup.py install
16+ $ python setup.py install
1717```
1818
1919Examples
3838 balance = client.balance()
3939
4040 # Print the object information.
41- print (' \n The following information was returned as a Balance object :\n ' )
41+ print (' Your balance :\n ' )
4242 print (' amount : %d ' % balance.amount)
4343 print (' type : %s ' % balance.type)
4444 print (' payment : %s \n ' % balance.payment)
4545
4646except messagebird.client.ErrorException as e:
47- print (' \n An error occured while requesting a Balance object :\n ' )
47+ print (' Error :\n ' )
4848
4949 for error in e.errors:
5050 print (' code : %d ' % error.code)
@@ -56,6 +56,7 @@ except messagebird.client.ErrorException as e:
5656This will give you something like:
5757``` shell
5858$ python example.py
59+ Your balance:
5960
6061 amount : 9
6162 type : credits
You can’t perform that action at this time.
0 commit comments