I have followed the example, put my own Key and my cellphone number as the destination. After turning the debug on, I always see a 403.
php74 test.php
[DEBUG] HTTP Request body ~BEGIN~
[{"phone_number":"16138535080","message":"test1","device_id":1}]
~END~
[DEBUG] HTTP Response body ~BEGIN~
{"status":"fail","message":"Could not process request","data":{"exception":"Access Denied."}}
~END~
About to connect() to smsgateway.me port 443 (#0)
Trying 142.93.107.113...
Connected to smsgateway.me (142.93.107.113) port 443 (#0)
Initializing NSS with certpath: sql:/etc/pki/nssdb
skipping SSL peer certificate verification
SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
Connection #0 to host smsgateway.me left intact
PHP Fatal error: Uncaught SMSGatewayMe\Client\ApiException: [403] Error connecting to the API (https://smsgateway.me/api/v4/message/send) in /var/www/clients/client0/web102/private/smsgateway/vendor/smsgatewayme/client/lib/ApiClient.php:247
Stack trace:
I have followed the example, put my own Key and my cellphone number as the destination. After turning the debug on, I always see a 403.
php74 test.php [DEBUG] HTTP Request body ~BEGIN~ [{"phone_number":"16138535080","message":"test1","device_id":1}] ~END~ [DEBUG] HTTP Response body ~BEGIN~ {"status":"fail","message":"Could not process request","data":{"exception":"Access Denied."}} ~END~
About to connect() to smsgateway.me port 443 (#0)
Trying 142.93.107.113...
Connected to smsgateway.me (142.93.107.113) port 443 (#0)
Initializing NSS with certpath: sql:/etc/pki/nssdb
skipping SSL peer certificate verification
SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
Server certificate:
subject: CN=smsgateway.me
start date: Jul 15 20:09:08 2021 GMT
expire date: Oct 13 20:09:06 2021 GMT
common name: smsgateway.me
issuer: CN=R3,O=Let's Encrypt,C=US
upload completely sent off: 64 out of 64 bytes < HTTP/1.1 403 Forbidden < Date: Tue, 07 Sep 2021 17:48:37 GMT < Server: Apache/2.4.18 (Ubuntu) < Cache-Control: no-cache, private < Transfer-Encoding: chunked < Content-Type: application/json <
Connection #0 to host smsgateway.me left intact PHP Fatal error: Uncaught SMSGatewayMe\Client\ApiException: [403] Error connecting to the API (https://smsgateway.me/api/v4/message/send) in /var/www/clients/client0/web102/private/smsgateway/vendor/smsgatewayme/client/lib/ApiClient.php:247 Stack trace:
0 /var/www/clients/client0/web102/private/smsgateway/vendor/smsgatewayme/client/lib/Api/MessageApi.php(525): SMSGatewayMe\Client\ApiClient->callApi()
1 /var/www/clients/client0/web102/private/smsgateway/vendor/smsgatewayme/client/lib/Api/MessageApi.php(459): SMSGatewayMe\Client\Api\MessageApi->sendMessagesWithHttpInfo()
2 /var/www/clients/client0/web102/private/smsgateway/test.php(30): SMSGatewayMe\Client\Api\MessageApi->sendMessages()
3 {main}
thrown in /var/www/clients/client0/web102/private/smsgateway/vendor/smsgatewayme/client/lib/ApiClient.php on line 247
I have already changed my authkey for the sake of my own security.
What am I missing?