Accessing Response Data
You can access the data from the last API response on any object viagetLastResponse().
SSL / TLS Compatibility issues
Telnyx’s API now requires that all connections use TLS 1.2. Some systems (most notably some older CentOS and RHEL versions) are capable of using TLS 1.2 but will use TLS 1.0 or 1.1 by default. The recommended course of action is to upgrade your cURL and OpenSSL packages so that TLS 1.2 is used by default, but if that is not possible, you might be able to solve the issue by setting theCURLOPT_SSLVERSION option to either CURL_SSLVERSION_TLSv1 or CURL_SSLVERSION_TLSv1_2:
SSL / TLS Configuration Option
See the “SSL / TLS compatibility issues” paragraph above for full context. If you want to ensure that your plugin can be used on all systems, you should add a configuration option to let your users choose between different values forCURLOPT_SSLVERSION: none (default), CURL_SSLVERSION_TLSv1 and CURL_SSLVERSION_TLSv1_2.
Development
Unit tests rely on a mock server so all unit tests are ran through docker. To run all unit tests execute:Plugin Developers
Are you writing a plugin that integrates Telnyx and embeds our library? Then please use thesetAppInfo function to identify your plugin. For example: