def __init__(self, **args):
    if ('username' in args):
        self.username = args['username']
    elif (not USERNAME):
        raise Exception('Please provide your Github username.')
    else:
        self.username = USERNAME
    if ('api_token' in args):
        self.api_token = args['api_token']
    elif (not API_TOKEN):
        raise Exception('Please provide your Github API Token.')
    else:
        self.api_token = API_TOKEN
    self.header = {'X-Github-Username': self.username, 'Content-Type': 'application/json', 'Authorization': ('token %s' % self.api_token)}
def __init__(self, **args):
    if ('username' in args):
        self.username = args['username']
    elif (not USERNAME):
        raise Exception('Please provide your Github username.')
    else:
        self.username = USERNAME
    if ('api_token' in args):
        self.api_token = args['api_token']
    elif (not API_TOKEN):
        raise Exception('Please provide your Github API Token.')
    else:
        self.api_token = API_TOKEN
    self.header = {'X-Github-Username': self.username, 'Content-Type': 'application/json', 'Authorization': ('token %s' % self.api_token)}