add gitlab

This commit is contained in:
aozhiwei 2018-09-14 11:28:06 +08:00
parent d3049e01ea
commit 1a04e4765d

8
gitlab/githelper.py Normal file
View File

@ -0,0 +1,8 @@
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()