TeleSign / php_telesign

The Telesign PHP SDK lets you easily integrate with our REST API.
MIT License
15 stars 33 forks source link

New release 2.2.2 is broken #15

Closed rotate2050 closed 6 years ago

rotate2050 commented 6 years ago

It seems like your newest minor version update is broken. Recent update was about having content type "application/json" for PhoneIdClient. Code always assumes that if the request is POST then it must be "application/json" content type. That api has no required body parameters and we are not passing that. We are getting 503 HTTP response code for each request for phoneid api. It used to working with your older version 2.2.1 properly. Can you please fix this?

$content_type = in_array($method_name, ["POST", "PUT"]) ? "application/json" : "";

Thanks.

ramsay commented 6 years ago

Release 2.2.4 has been published and fixes this issue.