Question
Forigate 6.0.10 API python return code 401
Hello,
I Using the next python code:
import requests
import json
api_url='https://x.x.x.x/api/v2/monitor/system/config/backup?scope=global&access_token=MYTOKEN'
requests.packages.urllib3.disable_warnings()
data=requests.get(api_url,verify=False)
print(data.status_code)
print(data)
'''Get license status'''
when i run this code i get error code 401
for the API profile i allowed read/write.
Please someone can share with me python code that work with fortigate API ?
and why my code is not working...