def create(self, **args):
    if ('description' in args):
        self.description = args['description']
    else:
        self.description = ''
    if ('name' in args):
        self.gist_name = args['name']
    else:
        self.gist_name = ''
    if ('public' in args):
        self.public = args['public']
    else:
        self.public = 1
    if ('content' in args):
        self.content = args['content']
    else:
        raise Exception("Gist content can't be empty")
    url = '/gists'
    data = {'description': self.description, 'public': self.public, 'files': {self.gist_name: {'content': self.content}}}
    r = requests.post(('%s%s' % (BASE_URL, url)), data=json.dumps(data), headers=self.header)
    if (r.status_code == 201):
        response = {'Gist-Link': ('%s/%s/%s' % (GIST_URL, self.username, r.json()['id'])), 'Clone-Link': ('%s/%s.git' % (GIST_URL, r.json()['id'])), 'Embed-Script': ('<script src="%s/%s/%s.js"</script>' % (GIST_URL, self.username, r.json()['id'])), 'id': r.json()['id'], 'created_at': r.json()['created_at']}
        return response
    raise Exception(('Gist not created: server response was [%s] %s' % (r.status_code, r.text)))
def create(self, **args):
    if ('description' in args):
        self.description = args['description']
    else:
        self.description = 
    if ('name' in args):
        self.gist_name = args['name']
    else:
        self.gist_name = 
    if ('public' in args):
        self.public = args['public']
    else:
        self.public = 1
    if ('content' in args):
        self.content = args['content']
    else:
        raise Exception("Gist content can't be empty")
    url = '/gists'
    data = {'description': self.description, 'public': self.public, 'files': {self.gist_name: {'content': self.content}}}
    r = requests.post(('%s%s' % (BASE_URL, url)), data=json.dumps(data), headers=self.header)
    if (r.status_code == 201):
        response = {'Gist-Link': ('%s/%s/%s' % (GIST_URL, self.username, r.json()['id'])), 'Clone-Link': ('%s/%s.git' % (GIST_URL, r.json()['id'])), 'Embed-Script': ('<script src="%s/%s/%s.js"</script>' % (GIST_URL, self.username, r.json()['id'])), 'id': r.json()['id'], 'created_at': r.json()['created_at']}
        return response
    raise Exception(('Gist not created: server response was [%s] %s' % (r.status_code, r.text)))