diff --git a/gitlab/githelper.py b/gitlab/githelper.py new file mode 100644 index 0000000..b4db3bc --- /dev/null +++ b/gitlab/githelper.py @@ -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()