0

I'm getting this object array as a response from the temboo fitbit api. This is the print_r($result) output:

Fitbit_Statistics_GetTimeSeriesByDateRange_Results Object ( [outputArray:protected] => Array ( [Response] => {"activities-log-steps":[{"dateTime":"2015-12-30","value":"129"}]} ) [lowercaseKeyMap:protected] => Array ( [response] => Response ) )

How do I access the value attribute of this object?

Thomas Orlita
  • 1,554
  • 14
  • 28
user2570937
  • 802
  • 3
  • 17
  • 34

2 Answers2

1

I found that temboo has methods to access the results:

getTimeSeriesByDateRangeResults->getResponse()
user2570937
  • 802
  • 3
  • 17
  • 34
  • 1
    +1 https://github.com/temboo/php-examples/blob/master/FacebookMealsApp/php-sdk/src/library/temboo.fitbit.php#L3368 – E_p Dec 30 '15 at 21:09
0

https://github.com/temboo/php-examples/blob/master/FacebookMealsApp/php-sdk/src/library/temboo.fitbit.php#L3368

Just do

$result->getResponse();
E_p
  • 3,136
  • 16
  • 28