Having trouble getting fax attachment using the following code.
$rcsdk = new RingCentral( $CLIENT_ID, $CLIENT_SECRET, "https://platform.ringcentral.com" );
$platform = $rcsdk->platform();
try {
$platform->login(["jwt" => $JWT_TOKEN]);
}catch (ApiException $e) {
// Getting error messages using PHP native interface
print 'Expected HTTP Error: ' . $e;
exit ("Error message: " . $e->apiResponse->response()->error() . PHP_EOL);
}
$accountId = '######';
$extensionId = '#####';
$messageId = '#####';
$attachmentId = '#####';
$queryParams = array(
'contentDisposition' => 'Inline'
);
$r = $platform->get("https://media.ringcentral.com/restapi/v1.0/account/{$accountId}/extension/{$extensionId}/message-store/{$messageId}/content/{$attachmentId}", $queryParams);
Error Received
Client error: `GET https://media.ringcentral.com/restapi/v1.0/account/#######/extension/#####/message-store/######/content/#####?contentDisposition=inline` resulted in a `400 Bad Request` response: { "errorCode" : "InvalidParameter", "message" : "Parameter [contentDisposition] value is invalid.", "errors" : [ { (truncated...)