Php 如何从RingCentral SMS响应获取会话ID?

Php 如何从RingCentral SMS响应获取会话ID?,php,sms,ringcentral,Php,Sms,Ringcentral,我正在使用PHP中的RingCentral WebRTC客户端构建一个简单的SMS发送模块。我可以成功地发送消息,得到一个有效的JSON响应对象,当我回显它时,我可以看到conversationId,但我似乎无法将它回显到变量中 这是我的API调用: $resp = $this->platform->post('/account/~/extension/~/sms', array( 'from' => array ('phoneNumber' => $this-&

我正在使用PHP中的RingCentral WebRTC客户端构建一个简单的SMS发送模块。我可以成功地发送消息,得到一个有效的JSON响应对象,当我回显它时,我可以看到conversationId,但我似乎无法将它回显到变量中

这是我的API调用:

$resp = $this->platform->post('/account/~/extension/~/sms',
array(
    'from' => array ('phoneNumber' => $this->ringcentral_username),
    'to' => array(array('phoneNumber' => $phone)),
    'text' => $message
));
我可以看到:

"conversationId" : 1234567890,
在响应对象中,但未找到
$resp->conversationId
。我怎么才能把它拔出来?

我找到了:

$resp->json()->conversationId