@MarcoPeli
Sorry, I was not thinking.
I have been using the register application URL page, that is where the Python code comes from. I will check Postman.
Posts
-
RE: Any way to avoid PUT check upon registering Application ?
-
RE: Any way to avoid PUT check upon registering Application ?
@soster Sorry, this was a different attempt, but it shows the PUT method
-
RE: Any way to avoid PUT check upon registering Application ?
@MarcoPeli
Python request from T-mobile, autogenerated from filled in form:import requests
url = “https://api.scs.iot.telekom.com/m2m/applications/registration”
payload = {
“headers”: {
“X-PIN”: “15”,
“X-Sensor”: “TTN-31415926535”,
“Content-Type”: “application/json”,
“cache-control”: “no-cache”,
“software_version”: “enviro-plus 0.0.1”,
“sensordatavalues”: [
{
“noise_LAeq”: “44.00”,
“noise_LA_min”: “33.00”,
“noise_LA_max”: “55.00”
}
]
},
“url”: “https://api.luftdaten.info/v1/push-sensor-data/”
}
headers = {
“Accept”: “application/json”,
“Content-Type”: “application/json”,
“Authorization”: “Basic <hidden>”
}response = requests.put(url, json=payload, headers=headers)
print(response.text)
-
Any way to avoid PUT check upon registering Application ?
I have tried to register influxDB as my Application. However the InfluxDB does not accept PUT as a method. T-mobile does a check when registering an Application using the PUT method, which then fails. Is there an alternative method for registering an Application that I can use?