Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
google-nest-sandbox
Starter sandbox project for controlling integrating with Google Nest via the Smart Device Management (SDM) API
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
google-api-core
The main functionality is handled by the Thermostat class. On creation it creates a service object using the Google Python API Client. That's used later to help build and execute API requests. At app exit the service object is closed.
google-auth
google-auth-oauthlib
The full code can be found at github.com/thnk2wn/google-nest-sandbox.
With requests working in Postman, it was time to write some code. My project idea involves the use of a Raspberry Pi and a Python library so I decided to start with Python. I'll preface this by saying I've done very little Python and it probably shows, plus this is only discovery work.
For simplicity I started off with Postman to test API calls. First I setup some variables at the collection level to reduce later repetition and hardcoding.
Related posts
- API Inspection Best Practices: Ensuring API Gateway Stability and Efficiency
- Guide on authenticating requests with the REST API
- AWS SnapStart - Part 16 Measuring cold and warm starts with Java 21 using different asynchronous HTTP clients
- Learn How to Create and Test a File Upload API using NestJS and Postman
- How to build a Flask app with Neon serverless database