tools/gitlab/githelper.py
2018-09-14 11:28:06 +08:00

9 lines
230 B
Python

import urllib.request
def httpGet():
req = urllib.request.Request('http://git.kingsome.cn/api/v4/projects')
req.add_header('Private-Token', 'cRjSP2EUx1SaQYcis9W7')
print(urllib.request.urlopen(req).read())
httpGet()