Skip to content

Commit 2e4156a

Browse files
committed
Some README tweaks
1 parent fdd600b commit 2e4156a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Requirements
1010

1111
Installation
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

1919
Examples
@@ -38,13 +38,13 @@ try:
3838
balance = client.balance()
3939

4040
# Print the object information.
41-
print('\nThe 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

4646
except messagebird.client.ErrorException as e:
47-
print('\nAn 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:
5656
This will give you something like:
5757
```shell
5858
$ python example.py
59+
Your balance:
5960

6061
amount : 9
6162
type : credits

0 commit comments

Comments
 (0)