MT10 - API V1

9un1x
New here

MT10 - API V1

Hi everyone, I m a french student and i ve a simple question about MT10 sensor.

I want use the endpoint : https://api.meraki.com/api/v1/organizations/******/sensor/readings/history

in my python script to have degrees informations and create dashboard.

 

When I made a browser request with this endpoint i ve JSON result, and nothing when i use my script (and no error in my terminal) I ve juste one blank line 

But when I change the endpoint with another in this script i ve result

 

My script  have made with postman and it is very simple.

All personal informations are good (Org ID, API key)

I try change the language of my script but it's the same I ve no result

 

Do you ve an idea ?

 

Thanks for your reply and your time 🙂 

 

###########################################

import requests
import urllib3
urllib3.disable_warnings()


payload={}
headers = {
  'X-Cisco-Meraki-API-Key': '*********************************',
}

response = requests.request("GET", url=url, headers=headers, verify=False)

print (response.text)

###########################################

2 Replies 2
RaphaelL
Kind of a big deal
Kind of a big deal

Hi ,

 

Sorry for the late reply. Are the MT API in beta ? I can't find the right documentation for this endpoint.

 

 

Do MT sensors support API’s?

Yes. Sensor API endpoints are currently in Beta version. Please contact Meraki Support to enable the Sensor API endpoints for your organization if you wish to test it.

 

Have you done that ?

RaphaelL
Kind of a big deal
Kind of a big deal

Hi ,

 

Just found this info : https://community.meraki.com/t5/Sensors/MT-Sensor-API-and-MQTT-officially-GA/m-p/140273#M328

 

MT Sensor API Information:

Note: API endpoints will be available by Monday February 21, 2022

 

Can you test tomorrow to see if the endpoints are now working ?

Get notified when there are additional replies to this discussion.