added get_quota() and get_balance()

This commit is contained in:
richard 2013-03-10 03:39:06 +00:00
parent 83b1de1662
commit f84d5bf311
2 changed files with 3 additions and 3 deletions

View file

@ -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']

View file

@ -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()