Need help sending base64 to myplantin.com api

had an idea i could take a snapshot from camera ontop of plant and send it to myplantin.com , this would then diagnose if the plant has any issues and i could scrape the results and return them in node red. eventually creating a system to counteract the issue with automation.

not able to get the api to respond properly, i do have a lifetime subscription to this site as well. any help/direction would be greatly apprecited

[
    {
        "id": "f11f4a1f5083ae4b",
        "type": "http request",
        "z": "f05cdbd58a510d49",
        "name": "Send to Platin API",
        "method": "POST",
        "ret": "obj",
        "paytoqs": "ignore",
        "url": "https://myplantin.com/next-api/trpc/plant-problems.diagnose?batch=1",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 910,
        "y": 100,
        "wires": [
            [
                "28a7bb3bf43dc4c1",
                "587f1b7f4b06aca6"
            ]
        ]
    }
]

Is there any documentation for api?

after a little digging of the page ive come up with a few things

payload ::

checksum: c0a8c2011094027648f0df91e8575125
client: d5c551aaaec50b171ff6dcffc46e43d1
e: [{"device_id":"mvMkMVEDeMgFsBz4bi_rQZ","user_id":"13265880","timestamp":1720111040422,"event_id":82,"session_id":1720111040422,"event_type":"plant_problems_tap","version_name":null,"platform":"Web","os_name":"Chrome","os_version":"122","device_model":"Chromium OS","device_manufacturer":null,"language":"en-GB","api_properties":{},"event_properties":{"tab":"diagnose_disease","env":"prod"},"user_properties":{},"uuid":"4009dc7b-f8a6-4bc9-b010-ea15fa1989d9","library":{"name":"amplitude-js","version":"8.19.0"},"sequence_number":85,"groups":{},"group_properties":{},"user_agent":"Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36","partner_id":null}]
upload_time: 1720111040427
v: 2

api it uses :::

Have you tried and managed to make some of the several examples working?

Only gotten it to send but not accept the payload so far still returning a 400 error

I'm talking about the examples on the amplitude site you did link to. Did any of those work for you? That would anyway be the first step before trying anything else

I don't think this is the documentation for myplantin.com's api

its what im getting when i click the diagnose plant disease, though i dont really know much i kinda just tinker around until something works, your right though it uses api.amplitude.com not api2.amplitude.com

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.