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?
-
Hi soster, i actually receive a POST and not a PUT when our systems validate the application, could you please check this?
Thank you very much,
Best regards
Marco Peli -
@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)
-
@soster Sorry, this was a different attempt, but it shows the PUT method
-
Hi soster, i misunderstood your request, yes our system needs a PUT for the application registration, i will check this and let you know!
Marco
-
@soster did you already try to register you apllication with postman or from our docs page? https://docs.iotcreators.com/reference/register-application-url
-
Also, please do not post sensible data like authorization tokens here, i deleted it thank you!
-
@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.