# Oauth2 with http

**URL:** <https://discourse.nodered.org/t/oauth2-with-http/1312>\
**Category:** General\
**Created:** [4 July 2018 11:35 UTC](https://discourse.nodered.org/t/oauth2-with-http/1312 "2018-07-04T11:35:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bidyutper](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bidyutper/32/1183_2.png) [@bidyutper](https://discourse.nodered.org/u/bidyutper)\
**Post date:** [4 July 2018 11:35 UTC](https://discourse.nodered.org/t/oauth2-with-http/1312/1 "2018-07-04T11:35:21Z")

</div>

Need help  
I want to Post/Get some sensor data via Rpi to Oauth2 protected http API.

{

```
"type": "HTTP_Sensor",

"deviceId": "DFRT",

"clientId": "1OnTq6Gfsfr7bIxxxxFUa",

"clientSecret": "fsfrgSERttkl2220etx9p2awO00a",

"accessToken": "xxxxx-xxxx-ffff-eedee-4545fgtgtg",

"refreshToken": "56555hghgd-676e-77ye-4r4j-gfhgegfh77",

"httpsGateway": "https://xx.xx.xx.xx:xxxx",

"httpGateway": "http://xx.xx.xx.xx:xxxx",

```

}
