I have this section of code from a working python script
Code: Select all
# Create a dictionary to store the data for your new repository
data = {
"name": "my-new-repository",
"description": "This is my new repository",
"private": False
}
# Send a POST request to the API endpoint to create a new repository
response = requests.post(f"{api_base_url}/user/repos", json=data, headers={
"Authorization": f"Bearer {personal_access_token}"
})
Code: Select all
put tsNetPost("connectionA",tUrl,tHeaders,tPostData,"postResponse") into tError