I'm getting an "unauthorized_client" error when attempting to send a fax using the PHP API. I have verified that all my parameters are set correctly based on what I see in my app for sandbox. So, I'm not sure what I'm missing. My code is below:
$fax="15136858572";
$RECIPIENT = $fax;
$RINGCENTRAL_CLIENTID = '<client id>';
$RINGCENTRAL_CLIENTSECRET = '<client secret>';
$RINGCENTRAL_SERVER = 'https://platform.devtest.ringcentral.com';
$RINGCENTRAL_USERNAME = '<username>';
$RINGCENTRAL_PASSWORD = '<password>!';
$RINGCENTRAL_EXTENSION = '101';
$rcsdk = new \RingCentral\SDK\SDK($RINGCENTRAL_CLIENTID, $RINGCENTRAL_CLIENTSECRET, $RINGCENTRAL_SERVER);
$platform = $rcsdk->platform();
$platform->login($RINGCENTRAL_USERNAME, $RINGCENTRAL_EXTENSION, $RINGCENTRAL_PASSWORD);
,
I'm getting an "unauthorized_client" error when trying to send a fax through the PHP API. I have my client ID, client secret, server, username, and password all set properly according to the information displayed for my app in sandbox. So, I'm not sure what I'm missing.