osms-php
osms-php copied to clipboard
A PHP library to access Orange SMS API.
Update token endpoint and header following new token proxy deployed by orange
in **getAdminContracts.php** file which **displays everything**: Array ( [partnerContracts] => Array ( [partnerId] => [email protected] [contracts] => Array ( [0] => Array ( [service] => SMS_OCB [contractDescription] => SMS API:...
the instance class with correct credentials but sendSms() method returns an error : The requested service needs credentials, but none were provided.
As recommended by OD please upgrate Oauth to v3 public function getTokenFromConsumerKey() { $url = self::BASE_URL . '/oauth/v3/token'; $credentials = $this->getClientId() . ':' . $this->getClientSecret(); $headers = array('Authorization: Basic '...
An "Array to string conversion" error gets trigggered when sending a request:  Here's the code used when error was triggered: ```php $config = [ 'clientId' => 'xxxxxxx', 'clientSecret' =>...