Got a strange issue happening.
I’m hitting https://developer-api.nest.com with my newly acquired access_token.
When I use Postman it gets the data every time. However, when I use Ruby (or even cURL) it doesn’t work every time. By not working I mean it just returns an empty string. Sometimes it returns data, but most of the time it just returns that empty string.
Here is a GIST of my code example: https://gist.github.com/rushingfitness/ad609468fc462a15e665f762adbbd165
Someone please help me figure out what I’m doing wrong!