Hey there!
- Polar: You can connect to Polar directly using the authentication endpoint without going through the widget! You can instead include a direct polar connection endpoint. See here for the specifics: https://docs.tryterra.co/reference#authentication
You'll need to specify resource as a query parameter set to the Polar provider identifier . The response will provide an auth_url that takes users directly to Polar's authentication flow. Please also note that the Polar integration does not allow data to be fetched before the user is authenticated - being one of the few integrations with this limitation.
POST /v2/auth/authenticateUser HTTP/1.1
Host: api.tryterra.co
dev-id: text
x-api-key: text
Content-Type: application/json
Accept: /
Content-Length: 111
{
"language": "text",
"reference_id": "text",
"auth_success_redirect_url": "text",
"auth_failure_redirect_url": "text"
}
- Samsung Health: The Terra Mobile SDK for Samsung Health is only available for Android, there is no SDK for Samsung Health on iOS so far. You can include Google Fit for those users that sync their data with it, however we recommend to rely on Terra's Android SDK to access data from Samsung Health.