updated readme
This commit is contained in:
parent
f84d5bf311
commit
3743298f66
3 changed files with 10 additions and 2 deletions
|
@ -33,6 +33,14 @@ m = mega.login(email, password)
|
||||||
```python
|
```python
|
||||||
details = m.get_user()
|
details = m.get_user()
|
||||||
```
|
```
|
||||||
|
### Get account balance (Pro accounts only)
|
||||||
|
```python
|
||||||
|
balance = m.get_balance()
|
||||||
|
```
|
||||||
|
### Get account disk quota
|
||||||
|
```python
|
||||||
|
quota = m.get_quota()
|
||||||
|
```
|
||||||
### Get account files
|
### Get account files
|
||||||
```python
|
```python
|
||||||
files = m.get_files()
|
files = m.get_files()
|
||||||
|
|
|
@ -273,7 +273,7 @@ class Mega(object):
|
||||||
node_data = self.api_request({'a': 'f', 'f': 1, 'p': public_handle})
|
node_data = self.api_request({'a': 'f', 'f': 1, 'p': public_handle})
|
||||||
node_id = None
|
node_id = None
|
||||||
|
|
||||||
#determine node id
|
#determine node id
|
||||||
for i in node_data['f']:
|
for i in node_data['f']:
|
||||||
if i['h'] is not u'':
|
if i['h'] is not u'':
|
||||||
node_id = i['h']
|
node_id = i['h']
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -30,7 +30,7 @@ def get_package_data(package):
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='mega.py',
|
name='mega.py',
|
||||||
version='0.8.5',
|
version='0.8.6',
|
||||||
packages=get_packages('mega'),
|
packages=get_packages('mega'),
|
||||||
package_data=get_package_data('mega'),
|
package_data=get_package_data('mega'),
|
||||||
description='Python lib for the Mega.co.nz API',
|
description='Python lib for the Mega.co.nz API',
|
||||||
|
|
Loading…
Reference in a new issue