My Android app is used by 1000s of customers. The app sends fitness data from external devices via BLE to a server via endpoint calls. The server runs algorithms on that data, and saves it to a database.
Now I want to send my users' data to Google Fit, but I don't want my Android app to send the data, I want my server to send the data. So the flow would be:
step counting device > BLE > android app > server > database > Fit Store
To accomplish this, I'd like to use the GoogleApiClient class to request auth for my users, and upon successful auth, send the auth "credentials" for that user to my server, so the server can upload the user's data on the app's behalf.
Where can I find the "credentials" data from the GoogleApiClient object in order to accomplish this goal?