import requests# set the API endpoint and headersurl ='https://api.example.com/post'headers = {'Content-type': 'application/json', 'Authorization': 'Bearer your_access_token'}# set the data to be sent in the requestdata = {'name': 'John Doe', 'email': 'johndoe@example.com'}# send the POST request using the Requests libraryresponse = requests.post(url, headers=headers, json=data)# verify the responseprint(response.status_code)print(response.text)