Very simple flask API examples
Installation:
Works well with docker-desktop for macbook
% git clone https://github.com/xod442/flask-aruba-central.git
% cd flask-aruba-central
flask-aruba-central1% docker-compose up -d
flask-aruba-central/tests
It is necessary to fill out the required fields in this dictionary. If you do not, there will be great sadness. :-)
central_info = {
"username": "[email protected]",
"password": "*****************",
"client_id": "XXxXXXXXXXXXXX",
"client_secret": "XXxXXXXXXXXXXX",
"customer_id": "XXxXXXXXXXXXXX",
"base_url": "https://apigw-uswest4.central.arubanetworks.com",
"refresh_token": "XXxXXXXXXXXXXX"
}
Get the values from Aruba Central API page [Here is some very good documentation on what to do]: (https://developer.arubanetworks.com/aruba-central/docs/api-getting-started).