teamviewer.com link icon
or
Ask The Community

TeamViewer IoT Cloud API - Get Last Data not working

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: 140 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

    Did my reply answer your question? Accept it as a solution to help others.
    Find this helpful? Say thanks by clicking on the Thumbs Up button.

  • rhojn
    rhojn Posts: 2 Newbie

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