iotcreators.com web
    • Login
    • Search
    • forum.iotcreators.com
    • docs.iotcreators.com
    • Tags
    • Popular
    • Recent
    • Register

    Any way to avoid PUT check upon registering Application ?

    iotcreators.com portal & API
    registering influxdb put-method
    2
    8
    210
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      soster last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • M
        MarcoPeli iotcreators.com team last edited by

        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

        S 1 Reply Last reply Reply Quote 0
        • S
          soster @MarcoPeli last edited by MarcoPeli

          @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)

          S 1 Reply Last reply Reply Quote 0
          • S
            soster @soster last edited by

            @soster Sorry, this was a different attempt, but it shows the PUT method

            M 1 Reply Last reply Reply Quote 0
            • M
              MarcoPeli iotcreators.com team last edited by

              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

              1 Reply Last reply Reply Quote 0
              • M
                MarcoPeli iotcreators.com team @soster last edited by

                @soster did you already try to register you apllication with postman or from our docs page? https://docs.iotcreators.com/reference/register-application-url

                M 1 Reply Last reply Reply Quote 0
                • M
                  MarcoPeli iotcreators.com team @MarcoPeli last edited by

                  Also, please do not post sensible data like authorization tokens here, i deleted it 😉 thank you!

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    soster @MarcoPeli last edited by

                    @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.

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post