hi dear
I want to use python api to import multiple mac addresses to endpoint, but I don't know python api, can you help me?
this is token api,but this error
import requests
import json
url = "https://172.16.0.100/api/oauth"
payload = {
"client_id": "client1",
"username": "user1",
"password": "aruba123"
}
headers = {
"Accept": "application/json",
"Authorization": "Bearer <TOKEN>",
"Content-Type": "application/json"
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.text)
------------------------------
leo ma
------------------------------