added get_quota() and get_balance()
This commit is contained in:
parent
83b1de1662
commit
f84d5bf311
2 changed files with 3 additions and 3 deletions
|
@ -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']
|
||||||
|
|
4
tests.py
4
tests.py
|
@ -2,8 +2,8 @@ from mega import Mega
|
||||||
|
|
||||||
def test():
|
def test():
|
||||||
#user details
|
#user details
|
||||||
email = 'richard@richard.do'
|
email = 'your@email.com'
|
||||||
password = 'fofput2'
|
password = 'password'
|
||||||
|
|
||||||
mega = Mega()
|
mega = Mega()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue