Files
python-convore/convore/core.py
T
Kenneth Reitz c4aa0f485b Problem solved.
2011-02-19 20:23:16 -05:00

36 lines
731 B
Python

# -*- coding: utf-8 -*-
"""
convore.core
~~~~~~~~~~~
This module implements the main Convore wrapper.
:copyright: (c) 2011 by Kenneth Reitz.
:license: ISC, see LICENSE for more details.
"""
import api
__title__ = 'convore'
__version__ = '0.0.1'
__build__ = 0x000001
__author__ = 'Kenneth Reitz'
__license__ = 'ISC'
__copyright__ = 'Copyright 2011 Kenneth Reitz'
class Convore(object):
def __init__(self, username, password):
self.username = username
api.login(username, password)
self.groups = api.Groups()
def account_verify(self):
r = api.get('account', 'verify')
if r.status_code == 200:
return True
else:
return False