add gitlab
This commit is contained in:
parent
d3049e01ea
commit
1a04e4765d
8
gitlab/githelper.py
Normal file
8
gitlab/githelper.py
Normal 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()
|
Loading…
x
Reference in New Issue
Block a user