Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mitulmlakhani/fit-app-data
https://github.com/mitulmlakhani/fit-app-data
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mitulmlakhani/fit-app-data
- Owner: mitulmlakhani
- License: mit
- Created: 2023-03-18T12:02:48.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-01T12:54:18.000Z (6 months ago)
- Last Synced: 2024-10-31T16:51:11.136Z (2 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## About Fit App Data
This package is for Read Steps data from diffrent heath APP and smart devices. it currently supports below services.
- [Google Fit](https://www.google.com/fit/)
## Installation
```
composer require mitulmlakhani/fit-app-data
```## Example
```
use Mitulmlakhani\FitAppData\Factory;$t = Factory::client('googleFit', [
'authToken' => 'Google Fit oauth2 Token',
'refreshToken' => 'Google Fit oauth2 Refresh Token',
'tokenExpiry' => 'token expiry unix timestamp'
]);//print_r($t->getStepsCount("From Timestamp", "To Timestamp", "Bucket Time(default is 1 day)"));
print_r($t->getStepsCount(1679123692, 1679123692));
```