﻿  #!C:\Python\Python311\python.exe
# -*- coding: utf-8 -*-
# grafana_f.py .


import requests
import json

USER_ID = "sa-sait"
API_KEY = "glsa_hwndcCdQchUG8ubEccN7n0WnATxdY9Ij_2a4f5790"
 
# http://localhost:3000/api/dashboards/home
server = "http://localhost:3000"
# Example 1: Get default Home dashboard:
url = server + "/api/dashboards"
url = "http://localhost:3000/api/datasources"
# To get the dashboard by uid
# url = server + "/api/dashboards/uid/" + uid
headers = {"Authorization":"Bearer "+API_KEY}
r = requests.get(url = url, headers = headers, verify=False)
print(r.json())