# Whistle Pet Tracker Token-based API

**URL:** <https://discourse.nodered.org/t/whistle-pet-tracker-token-based-api/78326>\
**Category:** Developing Nodes\
**Tags:** http-request\
**Created:** [10 May 2023 18:58 UTC](https://discourse.nodered.org/t/whistle-pet-tracker-token-based-api/78326 "2023-05-10T18:58:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrdvt92](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mrdvt92/32/33122_2.png) [@mrdvt92](https://discourse.nodered.org/u/mrdvt92)\
**Post date:** [10 May 2023 18:58 UTC](https://discourse.nodered.org/t/whistle-pet-tracker-token-based-api/78326/1 "2023-05-10T18:58:27Z")

</div>

I have a Whistle Pet Tracker and the web service API is quite simple. I have recreated the service in Perl from Python to figure it out. But, I'd like to make it a node since I'm moving all of my home network to node-red. The service is an authentication -\> token (cache) -\> request process. Where do I even start?

Perl Package: [GitHub - mrdvt92/perl-WebService-Whistle-Pet-Tracker-API: Perl interface to the Whistle Pet Tracker Web Service](https://github.com/mrdvt92/perl-WebService-Whistle-Pet-Tracker-API)  
Python Package: [GitHub - RobertD502/whistleaio: Asynchronous Python library for Whistle's API](https://github.com/RobertD502/whistleaio)

This is what I did in node-red and it works but the credentials are stored in the code base.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/1/a19eb56d704c7dcf4b739fb9c5900ae39ec0ffa6.png)

---

<div class="post-metadata">

**Author:** ![ralphwetzel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ralphwetzel/32/53713_2.png) [@ralphwetzel](https://discourse.nodered.org/u/ralphwetzel)\
**Post date:** [11 May 2023 05:10 UTC](https://discourse.nodered.org/t/whistle-pet-tracker-token-based-api/78326/2 "2023-05-11T05:10:01Z")

</div>

Hi!

> [@mrdvt92](#):
>
> Where do I even start?

1. Check the [Node-RED library](https://flows.nodered.org/), if someone else has already created a node that fits your demands.
2. [This documentation](https://nodered.org/docs/creating-nodes/) shows you how to create a node.
3. Nodes are able to [safely manage credentials](https://nodered.org/docs/creating-nodes/credentials)

Have fun!

.

---

<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:** [10 July 2023 05:10 UTC](https://discourse.nodered.org/t/whistle-pet-tracker-token-based-api/78326/3 "2023-07-10T05:10:04Z")

</div>

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