Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activities summaries #11

Open
patelhir opened this issue Jan 3, 2018 · 1 comment
Open

Activities summaries #11

patelhir opened this issue Jan 3, 2018 · 1 comment

Comments

@patelhir
Copy link

patelhir commented Jan 3, 2018

I am trying to fetch activities summaries. But when i am displaying data with simple print_r it returns collection object. Something like this, Choccybiccy\HumanApi\Collection Object ( [data:protected] => Array ( [0] => Choccybiccy\HumanApi\Model Object ( [data:protected] => Array ( [id] => 5a4c46dee229c40500f8cf30 [userId] => 5a44a3e24d6d760100f733be [date] => 2018-01-03 [duration] => 0 [distance] => 0 [steps] => 0 [calories] => 895 [source] => fitbit [vigorous] => 0 [moderate] => 0 [light] => 0 [sedentary] => 808 [sourceData] => Array ( [tracker] => Array ( [calories] => 895 [steps] => 0 [distance] => 0 [floors] => 0 [elevation] => 0 ) [caloriesBMR] => 895 [activityCalories] => 0 ) [createdAt] => DateTime Object ( [date] => 2018-01-03 02:58:38.084000 [timezone_type] => 2 [timezone] => Z ) [updatedAt] => DateTime Object ( [date] => 2018-01-03 07:58:37.829000 [timezone_type] => 2 [timezone] => Z ) [humanId] => 6afcc9dadb8d81d894cc2e83b8b0ab8e ) [api:protected] => Choccybiccy\HumanApi\Endpoint\ActivitiesSummaries Object ( [type:protected] => activities/summaries [plural:protected] => summaries [accessToken:protected] =>

I don't understand how to get simple response array.

@patelhir
Copy link
Author

patelhir commented Jan 4, 2018

Anyone who can help me here, I don't understand why I am not getting simple response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant