How do you connect google fit?

There is a lot of info on the community about accessing an API