Is there a way to get data for all Google Fitness users? - google-fit

I want to develop android application using google fitness api. I would like to provide a useful service by comparing based on a lot of user data.
Is there a way to get data for all Google Fitness users?

You can obtain data for users for whom you have an OAuth token; the scopes on that token determine which data you will be able to access.
But for all users? Good grief, no.

Related

Will old token with Google Contacts API access work for Google People API in the future?

We've discovered that old token with the Google Contacts scope https://www.google.com/m8/feeds/ can be used to access Google People API to access user' contacts. Migration guide provided by Google explains what new scopes Google People API needs, but doesn't explain whether the old token can be kept (https://developers.google.com/people/contacts-api-migration).
Keeping the old token is the preferred option because it doesn't require user interaction (user doesn't have to re-authorize his/her Google account on our system).
According to Google - on December 15th - 100% of Contacts API requests will return an error, but what will happen if requests are made to Google People API, but with the Google Contacts access scope?
It will work for reading and writing contacts and contact groups, but not "Other contacts" or directory data. See https://developers.google.com/people/contacts-api-migration#scope_migration

Getting storage usage from Google Contact/People API?

I am trying to get the remaining space of one's Google Contact.
This FAQ says every account has 20MB / 25000 contacts. But the People API does not have any REST resource to list one's storage.
How can I get the storage usage/space through People API?
Answer:
This information is not available to People API nor the deprecated Contacts API.
Workaround:
In order to see how many contacts you can still add, you can check how many contacts you currently have via people.connections.list and deduct that from the contact limit (25,000).
File a feature request:
If you think this functionality could be useful, I'd suggest you to file a feature request.

Is there possibility for registering URLs or domains in Google Maps API?

Is there a way to register Authorized URLs in Google Maps via an API?
Currently, I am manually adding URLs through the Google Maps Support portal, but I would like to be able to make an API call when a customer submits a new domain to my service.
Unfortunately, currently there is no way to manage API key restrictions programatically.
There is a feature request in Google issue tracker to make it possible:
https://issuetracker.google.com/issues/35829646
Please star this feature request to add your vote and subscribe to notifications, at the moment it has only 6 stars, not enough to increase its visibility.
Update from Google
The best way to handle thousands of authorized domains is to use an API to programmatically manage your API Keys and their restrictions, and we have recently launched a new service that allows you to do this.
This API is still in Alpha. If you are interested in becoming a Trusted Tester for this service, you can use the following form to sign up, please read the instructions carefully:
https://forms.gle/qx2SMcarWCAsbWVp7
Please note that this API is not part of the Google Maps Platform. After you fill out the form, you will be contacted by the API Keys API team with instructions on how to get started, and how to receive support.
API Keys API is currently free of charge. However, please note that use of Cloud Endpoints may be subject to charges at high traffic volume. You can check the pricing sheet here:
https://cloud.google.com/endpoints/pricing-and-quotas

Search capabilities with Google Cloud Storage

I'm going to use Google's infrastructure to store files and I hesitate between Google Drive and Google Cloud Storage. I don't think I'll store a lot of data (less than 50GB). However I would like to offer search functionality through files contents (FULL TEXT) to my users.
I know it's available with Google Drive SDK https://developers.google.com/drive/search-parameters but I'm not sure it is for Google Cloud Storage files ? I don't want to force my users to have a google account and they will be able to share files to others, and they will do all their stuff through my web site.
One more question, is there a way to manage identities with a Google API (create/update users) ? without a gmail account ?
thanks
Google cloud storage does not offer full text search at this time.
Identities require a Google/gmail account, but check out signed URLs: https://developers.google.com/storage/docs/accesscontrol#Signed-URLs.
Your app can determine whether one of your users should have access to an app and then hand the user a signed url that grants access to that object for a limited period of time.

Can the Licensing Manager API retrieve Drive quota usage?

The Google Licensing Manager API, https://developers.google.com/google-apps/licensing/, can be used to assign Drive licenses to users in an Apps domain. How can you retrieve the amount of storage a given user is actually using and not just what their total quota is?
This can't be done in the Licensing Manager API, it only retrieves information about the actual storage licences. The amount of quota a user has actually used can be found with about call in the Drive API, documented at https://developers.google.com/drive/v2/reference/about/get. Specifically the quotaBytesUsed property.