# Node Red - Query for an IP cam token

**URL:** https://discourse.nodered.org/t/node-red-query-for-an-ip-cam-token/72552
**Category:** General
**Tags:** http-request
**Created:** [21 December 2022 20:14 UTC](https://discourse.nodered.org/t/node-red-query-for-an-ip-cam-token/72552 "2022-12-21T20:14:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![staebchen0](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/staebchen0/32/72990_2.png) [@staebchen0](https://discourse.nodered.org/u/staebchen0)
#### Post date: [21 December 2022 20:14 UTC](https://discourse.nodered.org/t/node-red-query-for-an-ip-cam-token/72552/1 "2022-12-21T20:14:38Z")

</div>

Hi,  
can you request a token from an IP cam with Node Red and http request?

Specifically, it is about a Reolink Cam and I would like to use the API that Reolink provides to switch the push notification on and off.  
To do this I need the token

info it works like this:  
Get tokens:  
TOKENS:

```auto
url = cgi-bin/api.cgi?cmd=Login&token=null
payload = [{"cmd":"Login","action":0,"param":{"User":{"userName":"MyUser","password":"MyPW"}}}]

```

unfortunately I haven't found anything useful on the internet how to do this with Node Red?

---

<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: [19 February 2023 20:15 UTC](https://discourse.nodered.org/t/node-red-query-for-an-ip-cam-token/72552/2 "2023-02-19T20:15:12Z")

</div>

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