我有一个在 print_r 上输出它的对象:
Dropbox\Client Object
(
[accessToken:Dropbox\Client:private] => secret
[clientIdentifier:Dropbox\Client:private] => examples-web-file-browser
[userLocale:Dropbox\Client:private] =>
[apiHost:Dropbox\Client:private] => api.dropbox.com
[contentHost:Dropbox\Client:private] => api-content.dropbox.com
[root:Dropbox\Client:private] =>
[host] => Dropbox\Host Object
(
[api:Dropbox\Host:private] => api.dropbox.com
[content:Dropbox\Host:private] => api-content.dropbox.com
[web:Dropbox\Host:private] => www.dropbox.com
)
)
我如何获得“秘密”的价值?
更新: var_dump($dbxClient);
输出:
object(Dropbox\Client)#3 (7) {
["accessToken":"Dropbox\Client":private]=>
string(64) "HrouVh2oRTcAAAAAAAAAARYOdXzK5tA9lCscE24fdnVnt5wYYPSSaK8nITv4PFtc"
["clientIdentifier":"Dropbox\Client":private]=>
string(25) "examples-web-file-browser"
["userLocale":"Dropbox\Client":private]=>
NULL
["apiHost":"Dropbox\Client":private]=>
string(15) "api.dropbox.com"
["contentHost":"Dropbox\Client":private]=>
string(23) "api-content.dropbox.com"
["root":"Dropbox\Client":private]=>
NULL
["host"]=>
object(Dropbox\Host)#2 (3) {
["api":"Dropbox\Host":private]=>
string(15) "api.dropbox.com"
["content":"Dropbox\Host":private]=>
string(23) "api-content.dropbox.com"
["web":"Dropbox\Host":private]=>
string(15) "www.dropbox.com"
}
}