Jump to content
  • 0
stdwanze

Authentification Error /1/tlm/send

Question

I do not get the send command for the iternio.com api to work. Tried alot, according to https://documenter.getpostman.com/view/7396339/SWTK5a8w?version=latest#auth-info-2116fbab-059f-42e1-b6fd-30e1b96b14c6.

Always get an 401. Got my api key from the generic token screen in the webapp.

What do i wrong?

Example request:

POST /1/tlm/send?token=<token from generic token dialog>&tlm={"utc":1553807658,"soc":80.4,"soh":97.7,"speed":0,"lat":29.564,"lon":-95.025,"is_charging":0,"power":13.2,"ext_temp":25,"batt_temp":25} HTTP/1.1
Host: api.iternio.com
Content-Length: 756
 
{
  "tlm": {
    "activity_id""66666666",
    "time""2020-02-06 09:03:04",
    "is_charging""0",
    "lat""53.256992619126045",
    "lon""10.419302238142292",
    "soc""99.55",
    "speed""28",
    "elevation""5",
    "power""-1.27",
    "battery_range""",
    "ideal_battery_range""",
    "typecode""",
    "ext_temp""5",
    "battery_capacity""",
    "batt_temp""",
    "tlm_type""api",
    "charger_id""",
    "voltage""",
    "current""",
    "charge_energy_added""",
    "soh""",
    "is_dcfc""",
    "heading""",
    "weather_temp""",
    "weather_pressure""",
    "weather_humidity""",
    "weather_condition""",
    "weather_wind_speed""",
    "weather_wind_dir""",
    "odometer"""
  }
}
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

As stated in the documentation you need to request an API key. The token you use is the user token.

To be able to use the API, you will need to obtain an API key and a user token for each user. The Telemetry-Only API keys are free, and get you basic access to the Telemetry API. Contact us at contact@iternio.com to receive a Telemetry API key. The API key identifies your application to our server for authentication.

Please check the telemetry documentation here:

https://documenter.getpostman.com/view/7396339/SWTK5a8w?version=latest

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...