Add {main,config}.py
This commit is contained in:
commit
ff783f41da
15
main.py
Normal file
15
main.py
Normal file
@ -0,0 +1,15 @@
|
||||
import requests
|
||||
import json
|
||||
import config
|
||||
|
||||
GITEA_INSTANCE = 'https://gitea.lemnoslife.com'
|
||||
|
||||
headers = {
|
||||
'Authorization': f'token {config.TOKEN}'
|
||||
}
|
||||
|
||||
url = f'{GITEA_INSTANCE}/api/v1/repos/Benjamin_Loison/Synchronous_reactive_systems/collaborators'
|
||||
|
||||
collaborators = requests.get(url, headers = headers).json()
|
||||
|
||||
print(json.dumps(collaborators, indent = 4))
|
Loading…
Reference in New Issue
Block a user