'Retrieve an authentication token'

@g_connect
def authenticate(self, github_token):

    url = ('%s/tokens/' % self.baseurl)
    args = urlencode({'github_token': github_token})
    resp = open_url(url, data=args, validate_certs=self._validate_certs, method='POST')
    data = json.loads(to_text(resp.read(), errors='surrogate_or_strict'))
    return data
