What is a better way to code this to avoid the Rate request exceeded error response? We do not have a way to multithread or internally cache the token information.
We also are not using the PHP SDK. When I looked at it, the documentation in the middle/bottom of the page is pretty sparce ( https://github.com/ringcentral/ringcentral-php) on how it works and if this would resolve the issue. If calling $sdk->platform()->loggedIn(); each instance the script is called, what is returned? Does it returns that we are still logged in (authenticated) and we can continue forward with the SMS, thereby avoiding the token calls that trigger the "Request rate exceeded" error?