Twilio recently stopped their Configuration Profile SID in favor of the new Room Rest API.
Previously I used to create an access token with the configuration profile SID grant and then pass the access token to javascript to connect the participants:
$callerCallId = substr(md5(microtime()), 0, 15);
$callerAccessToken = new Services_Twilio_AccessToken($accountSid, $apiKeySid, $apiKeySecret, 3600, $callerCallId);
$callerConversationGrant = new Services_Twilio_Auth_ConversationsGrant();
$callerConversationGrant->setConfigurationProfileSid($configurationProfileSid);
$callerAccessToken->addGrant($callerConversationGrant);
$callerToken = $callerAccessToken->toJWT();
With the new REST API, what do I do? Twilio's official documentation is not helpful at all.