'Create a blob with ``content``.
:param str content: (required), content of the blob
:param str encoding: (required), (\'base64\', \'utf-8\')
:returns: string of the SHA returned'

@requires_auth
def create_blob(self, content, encoding):

    sha = u''
    if (encoding in (u'base64', u'utf-8')):
        url = self._build_url(u'git', u'blobs', base_url=self._api)
        data = {u'content': content, u'encoding': encoding}
        json = self._json(self._post(url, data=data), 201)
        if json:
            sha = json.get(u'sha')
    return sha
