< Blogs
Elliott

Elliott

May 30, 2022

The Power of the Data Generator

One of our many tasks was: How can we let developers test our API quickly?

Reading from our docs, you as a developer can see what format we send our data in. However, when it comes to playing around with the API, you may not be completely sure as to what to expect in your webhook for each provider. Things such as what fields from sleep payload does Apple provide or does Google Fit provide Nutrition data. You can now get a comprehensive understanding of what kind of data you expect to receive using our data generator!

Who gives what

When you communicate with Terra, you are always given the same data structure. However, it would be really helpful to know during development the exact type of data each provider provides.

Let's say you are trying to integrate with us for Sleep data with Oura, Google Fit and Garmin. With our data generator, you can preemptively find out if these providers provide sleep data, and most importantly, which fields in our sleep data model do they provide.

Generating Oura Sleep Data

Looking at the above example, you can see that Oura do indeed provide Sleep data. However, does not provide body, nutrition, or activity. Knowing this information before hand allows you to deal with cases where you can avoid unnecessary requests or unexpected empty responses from Terra. In addition, you can also confirm exactly which fields Oura provides so you can avoid hitting null cases, or making sure that the field is populated with an int or a double!

Robust Testing

The data generator sends the data to your webhook exactly as shown in the terminal screen when you press "Send to Webhook". This feature is exceptionally useful for testing. Using generated data, you can make sure your backend is storing the data correctly, handling null or empty values as expected, or getting the data type you are expecting. The data generator also allows you to develop and test for a wearable or provider without you actually having the wearable itself!

Give it a go!

Always been on the edge on whether you should use Terra because you do not know the flow of our data or the data structure well? Now is the time for you to be completely sure of it. Go to our dashboard, sign up, and test it out for yourself!

More Topics

All Blogs
Team Spotlight
Startup Spotlight
How To
Blog
Podcast
Product Updates
Wearables
See All >
CEO and Co-Founder of Bioniq - Vadim Fedotov

CEO and Co-Founder of Bioniq - Vadim Fedotov

In this podcast with Kyriakos the CEO of Terra, Vadim Fedotov a former professional athlete turned entrepreneur, shares his journey in founding Bioniq.

Terra APITerra API
December 10, 2024
5 Lessons for Standing Out at HLTH

5 Lessons for Standing Out at HLTH

5 lessons from team Terra API for making a lasting impact at HLTH: from engaging senses to building real touch points, here’s what we learned from the HLTH event.

VanessaVanessa
December 5, 2024
November '24 Updates by Terra

November '24 Updates by Terra

Terra’s Latest Updates: Zepp Metrics, Support Revamp, and Teams API Enhancements 🚀✨

Alex VenetidisAlex Venetidis
December 1, 2024
Strava Pulls the Plug on their API: What This Means for Developers

Strava Pulls the Plug on their API: What This Means for Developers

Strava discontinued their API service, changing the ecosystem of third-party apps that have relied on their platform. How can developers react to this?

Terra APITerra API
November 21, 2024
Alternatives to the latest changes in the Strava API

Alternatives to the latest changes in the Strava API

Strava just introduced big changes to their API program. These changes will basically kill off a lot of apps. Use Terra API instead to avoid this

Kyriakos EleftheriouKyriakos Eleftheriou
November 19, 2024
next ventures
pioneer fund
samsung next
y combinator
general catalyst

Cookie Preferences

Essential CookiesAlways On
Advertisement Cookies
Analytics Cookies

Crunch Time: Embrace the Cookie Monster Within!

We use cookies to enhance your browsing experience and analyse our traffic. By clicking “Accept All”, you consent to our use of cookies according to our Cookie Policy. You can change your mind any time by visiting out cookie policy.