5 lines
217 B
Python
5 lines
217 B
Python
import requests
|
|
gitlab_pat = 'glpat-mJPdjrPiHCTj2NqNZN_m'
|
|
headers = {'PRIVATE-TOKEN': gitlab_pat}
|
|
r = requests.get('https://gitlab.ekeepa.co/api/v4/projects/10', headers=headers)
|
|
print(r.json().get('default_branch'))
|