# Need help sending base64 to myplantin.com api

**URL:** <https://discourse.nodered.org/t/need-help-sending-base64-to-myplantin-com-api/89245>\
**Category:** General\
**Created:** [3 July 2024 22:05 UTC](https://discourse.nodered.org/t/need-help-sending-base64-to-myplantin-com-api/89245 "2024-07-03T22:05:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikey](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@mikey](https://discourse.nodered.org/u/mikey)\
**Post date:** [3 July 2024 22:05 UTC](https://discourse.nodered.org/t/need-help-sending-base64-to-myplantin-com-api/89245/1 "2024-07-03T22:05:43Z")

</div>

had an idea i could take a snapshot from camera ontop of plant and send it to [myplantin.com](http://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

```auto
[
    {
        "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"
            ]
        ]
    }
]

```

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [6 July 2024 08:14 UTC](https://discourse.nodered.org/t/need-help-sending-base64-to-myplantin-com-api/89245/2 "2024-07-06T08:14:23Z")

</div>

Is there any documentation for api?

---

<div class="post-metadata">

**Author:** ![mikey](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@mikey](https://discourse.nodered.org/u/mikey)\
**Post date:** [6 July 2024 20:20 UTC](https://discourse.nodered.org/t/need-help-sending-base64-to-myplantin-com-api/89245/3 "2024-07-06T20:20:53Z")

</div>

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

payload ::

```auto
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 :::

> **[HTTP V2 API](https://amplitude.com/docs/apis/analytics/http-v2)**
>
> Considerations
> Keep the following in mind as you use the HTTP V2 API.
> Upload limit
> For Starter plan

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [7 July 2024 08:02 UTC](https://discourse.nodered.org/t/need-help-sending-base64-to-myplantin-com-api/89245/4 "2024-07-07T08:02:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mikey](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@mikey](https://discourse.nodered.org/u/mikey)\
**Post date:** [7 July 2024 14:04 UTC](https://discourse.nodered.org/t/need-help-sending-base64-to-myplantin-com-api/89245/5 "2024-07-07T14:04:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [7 July 2024 15:03 UTC](https://discourse.nodered.org/t/need-help-sending-base64-to-myplantin-com-api/89245/6 "2024-07-07T15:03:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [7 July 2024 15:42 UTC](https://discourse.nodered.org/t/need-help-sending-base64-to-myplantin-com-api/89245/7 "2024-07-07T15:42:49Z")

</div>

> [@mikey](#):
>
> api it uses :::
> 
> [HTTP V2 API](https://amplitude.com/docs/apis/analytics/http-v2)

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

---

<div class="post-metadata">

**Author:** ![mikey](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@mikey](https://discourse.nodered.org/u/mikey)\
**Post date:** [7 July 2024 18:55 UTC](https://discourse.nodered.org/t/need-help-sending-base64-to-myplantin-com-api/89245/8 "2024-07-07T18:55:46Z")

</div>

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](http://api.amplitude.com) not [api2.amplitude.com](http://api2.amplitude.com)

 ![20240707_14h54m12s_grim](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/0/70437aa6fd0bdde40db72175e3eaadbd97a42cd2.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 October 2024 18:55 UTC](https://discourse.nodered.org/t/need-help-sending-base64-to-myplantin-com-api/89245/9 "2024-10-05T18:55:59Z")

</div>

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