TeamViewer IoT Cloud API - Get Last Data not working

rhojn
rhojn Posts: 2 ✭✭
edited April 2023 in IoT Forum

Hello,

I'm currently working on an app that uses the TeamViewer IoT Cloud API, and one of the endpoints that the app needs to access is the "Get Last Data," but I can't seem to make it work. It's always returning a 151 error code with "Error.wrong parameters." error message even if I'm using the correct parameters based on the documentation.


Tagged:

Answers

  • mircea_c
    mircea_c Posts: 146 Staff member 🤠

    Hi @rhojn

    Could you please try with these parameters?

    /snapshot?sensors=[{"id":the_sensor_id,"metrics":[{"id":":the_metric_id","valueType":"double_or_string"}]}]

    Regards,

    Mircea

    Tech Support IoT

  • rhojn
    rhojn Posts: 2 ✭✭

    Hi @mircea_c, It's working now using the parameters you provided. Thanks!