first stuff for access tokens

This commit is contained in:
Laura Klünder 2016-12-20 03:53:28 +01:00
parent b26a3548fc
commit adaf732809
9 changed files with 336 additions and 19 deletions

View file

@ -147,4 +147,4 @@ class GitlabHoster(Hoster):
response = requests.get(self.base_url + 'api/v3/user?private_token=' + access_token)
if response.status_code != 200:
return None
return str(response.json()['id'])
return self.base_url+'user/'+str(response.json()['id'])