You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
580 B
Python
25 lines
580 B
Python
import requests
|
|
|
|
TOKEN = "TON_TOKEN_API"
|
|
URL = "https://forge.gwenaelremond.fr/api/v1/users/repos"
|
|
|
|
payload = {
|
|
"description": "Mon nouveau dépôt", # Remplace par la valeur souhaitée
|
|
"name": "exercice", # Remplace par la valeur souhaitée
|
|
"private": False
|
|
}
|
|
|
|
headers = {
|
|
"Content-Type": "application/json",
|
|
# Ajoute un token d'authentification si nécessaire
|
|
"Authorization": f"Bearer {TOKEN}"
|
|
}
|
|
|
|
data = {
|
|
"name": "exercice",
|
|
"description": "Mon depit exercice API",
|
|
"auto_init": True,
|
|
"private": False
|
|
}
|
|
|
|
response = request.requests() |