We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
The text was updated successfully, but these errors were encountered:
Anyone who can help me here, I don't understand why I am not getting simple response.
Sorry, something went wrong.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: