0

我得到这个对象数组作为来自 temboo fitbit api 的响应。这是print_r($result)输出:

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

如何访问value该对象的属性?

4

2 回答 2

1

我发现 temboo 有访问结果的方法:

getTimeSeriesByDateRangeResults->getResponse()
于 2015-12-30T21:06:09.660 回答
0

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

做就是了

$result->getResponse();
于 2015-12-30T21:08:25.173 回答