# HTTP call to pass a variable to Homey using a api

**URL:** <https://community.homey.app/t/http-call-to-pass-a-variable-to-homey-using-a-api/12850>\
**Category:** Apps\
**Created:** [May 8, 2019, 6:54pm UTC](https://community.homey.app/t/http-call-to-pass-a-variable-to-homey-using-a-api/12850 "2019-05-08T18:54:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jef\_van\_Leeuwen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jef_van_leeuwen/32/9801_2.png) [@Jef\_van\_Leeuwen](https://community.homey.app/u/Jef_van_Leeuwen)\
**Post date:** [May 8, 2019, 6:54pm UTC](https://community.homey.app/t/http-call-to-pass-a-variable-to-homey-using-a-api/12850/1 "2019-05-08T18:54:42Z")

</div>

I have a HTTP call from a ESP8266 it worked with V1.x  
In the IDE Arduino envoronment it is composed as follows:

http.begin(“[http://192.168.178.18/api/app/com.internet/OntvangenGETTemp0/](http://192.168.178.18/api/app/com.internet/OntvangenGETTemp0/)”+String(temp0)); (temp0 is the variable to be passed to Homey - BetterLogic- variable!!)

im Homey V2.0 i now get this error:  
{“code”:401,“error”:“not\_logged\_in”,“error\_description”:“You need to log in to access this resource”}

Can anybody help me with the cards/parameters t use in V2.0 !!!

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [May 8, 2019, 7:03pm UTC](https://community.homey.app/t/http-call-to-pass-a-variable-to-homey-using-a-api/12850/2 "2019-05-08T19:03:01Z")

</div>

In the settings for the HTTP Request Flow Cards app, you need to disable authorization if you want it to work on v2. Look at [this post](https://community.homey.app/t/tutorial-using-siri-shortcuts-for-activating-flows-with-pics/7473), from point 6 onwards.

---

<div class="post-metadata">

**Author:** ![Jef\_van\_Leeuwen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jef_van_leeuwen/32/9801_2.png) [@Jef\_van\_Leeuwen](https://community.homey.app/u/Jef_van_Leeuwen)\
**Post date:** [May 9, 2019, 2:09pm UTC](https://community.homey.app/t/http-call-to-pass-a-variable-to-homey-using-a-api/12850/3 "2019-05-09T14:09:20Z")

</div>

Thx. That was the was to go. IT now works.
