ovh / php-ovh-sms

PHP for ovh sms API
Other
48 stars 49 forks source link

Problem with expiring API permissions #37

Open Sasni opened 2 years ago

Sasni commented 2 years ago

Hi. I am testing SMS sending using OVH Api and this tutorial -> https://docs.ovh.com/gb/en/sms/send_sms_with_ovhcloud_api_in_php/ (first 20 SMS I have for free). I created a token (2022-01-31) at https://eu.api.ovh.com/createToken/index.cgi?GET=/sms&GET=/sms/*/jobs&POST=/sms/*/jobs setting Validity to "UNLIMITED" and I was able to send messages. After a few days it looks like the permissions have expired.

https://eu.api.ovh.com/1.0/smsresulted in a403 Forbidden` response: {"message": "This credential is not valid", "httpCode": "403 Forbidden", "errorCode": "INVALID_CREDENTIAL"}

Is this normal?